| Summary: | Windows Text Input events are not processed from `alt` codes at all. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | ensiform |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | metalcaedes |
| Version: | HG 2.1 | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
|
Description
ensiform
2015-01-24 03:32:00 UTC
I think https://bugzilla.libsdl.org/show_bug.cgi?id=2834 is related - dead keys also don't work with the current "generate unicode char from key hack", because with dead keys the char is generated from two key presses. I think SDL should (only) use WM_CHAR and WM_UNICHAR for textinput. This works with the latest SDL snapshot: http://www.libsdl.org/tmp/SDL-2.0.zip INFO: Key pressed : scancode 226 = Left Alt, keycode 0x400000E2 = Left Alt modifiers: LALT NUM (repeat) INFO: Key pressed : scancode 98 = Keypad 0, keycode 0x40000062 = Keypad 0 modifiers: LALT NUM INFO: Key released: scancode 98 = Keypad 0, keycode 0x40000062 = Keypad 0 modifiers: LALT NUM INFO: Key pressed : scancode 89 = Keypad 1, keycode 0x40000059 = Keypad 1 modifiers: LALT NUM INFO: Key released: scancode 89 = Keypad 1, keycode 0x40000059 = Keypad 1 modifiers: LALT NUM INFO: Key pressed : scancode 97 = Keypad 9, keycode 0x40000061 = Keypad 9 modifiers: LALT NUM INFO: Key released: scancode 97 = Keypad 9, keycode 0x40000061 = Keypad 9 modifiers: LALT NUM INFO: Key pressed : scancode 91 = Keypad 3, keycode 0x4000005B = Keypad 3 modifiers: LALT NUM INFO: Key released: scancode 91 = Keypad 3, keycode 0x4000005B = Keypad 3 modifiers: LALT NUM INFO: Key released: scancode 226 = Left Alt, keycode 0x400000E2 = Left Alt modifiers: NUM INFO: INPUT Text (\xc3\x81): "Á" |