Yes. When I do the same actions in xev, the following comes up:
KeyPress event, serial 37, synthetic NO, window 0x5000001,
root 0xad, subw 0x5000002, time 27671363, (42,40), root:(593,373),
state 0x0, keycode 21 (keysym 0xfe51, dead_acute), same_screen YES,
XLookupString gives 2 bytes: (c2 b4) "?"
XmbLookupString gives 0 bytes:
XFilterEvent returns: True
KeyRelease event, serial 37, synthetic NO, window 0x5000001,
root 0xad, subw 0x5000002, time 27671436, (42,40), root:(593,373),
state 0x0, keycode 21 (keysym 0xfe51, dead_acute), same_screen YES,
XLookupString gives 2 bytes: (c2 b4) "?"
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x5000001,
root 0xad, subw 0x5000002, time 27672463, (42,40), root:(593,373),
state 0x0, keycode 26 (keysym 0x65, e), same_screen YES,
XLookupString gives 1 bytes: (65) "e"
XmbLookupString gives 1 bytes: (65) "e"
XFilterEvent returns: True
KeyPress event, serial 37, synthetic NO, window 0x5000001,
root 0xad, subw 0x5000002, time 27672463, (42,40), root:(593,373),
state 0x0, keycode 0 (keysym 0xe9, eacute), same_screen YES, //
KEYCODE ACTUALLY 0
XLookupString gives 0 bytes:
XmbLookupString gives 2 bytes: (c3 a9) “?” // NOTE THE ACCENT HERE
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x5000001,
root 0xad, subw 0x5000002, time 27672574, (42,40), root:(593,373),
state 0x0, keycode 26 (keysym 0x65, e), same_screen YES,
XLookupString gives 1 bytes: (65) "e"
XFilterEvent returns: False
Maybe the keycode is 0 because there is no single key for that letter on
the keyboard.
Also, if I comment the call to “SDL_StartTextInput()” out, there is
still no event for the first key press. So there is no chance of using
that key for a game.On 2013-05-20 21:05, sdl-request at lists.libsdl.org wrote:
Does it even have a key code there? It says 0 if I’m reading correctly o_O