Checkkeys - key not recognized

Hi,

On German keyboard layout, when I want to create an e with an accent
(first press the accent key, then the e key), I get the following in
tests/checkkeys:

$ ./checkkeys
The key you just pressed is not recognized by SDL. To help get this
fixed, please report this to the SDL mailing list X11
KeyCode 0 (-8), X11 KeySym 0x0 ((null)).
INFO: Text: ?

In case there is some encoding error: The line with “INFO: Text:” has
the right symbol at the end, an e with an accent.

Apart from the error message it is quite interesting, that no
keydown-event is produced on pressing the accent key. This would make
that key quite useless for games, wouldn’t it?

I have the current hg developer version. System is Xubuntu 12.10 AMD64
on an Acer Laptop.

Best,
Constantin

Does it even have a key code there? It says 0 if I’m reading correctly o_O

2013/5/20, Constantin Berhard :> Hi,

On German keyboard layout, when I want to create an e with an accent
(first press the accent key, then the e key), I get the following in
tests/checkkeys:

$ ./checkkeys
The key you just pressed is not recognized by SDL. To help get this
fixed, please report this to the SDL mailing list X11
KeyCode 0 (-8), X11 KeySym 0x0 ((null)).
INFO: Text: ?

In case there is some encoding error: The line with “INFO: Text:” has
the right symbol at the end, an e with an accent.

Apart from the error message it is quite interesting, that no
keydown-event is produced on pressing the accent key. This would make
that key quite useless for games, wouldn’t it?

I have the current hg developer version. System is Xubuntu 12.10 AMD64
on an Acer Laptop.

Best,
Constantin


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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