The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Keyboard layout error fix?
StephenJSweeney


Joined: 29 Mar 2015
Posts: 15
Relevant Info:
Linux Mint 17
SDL version: 2.0.2+dfsg

I've remapped the keys on my laptop's keyboard, swapping END, PGUP, and PGDN into a more natural order. All other applications on the system work fine and respect this, however, upon start up SDL spits out:

Keyboard layout unknown, please send the following to the SDL mailing list:
code = 1, sym = 0xFF1B (Escape) scancode = 41 (Escape)
code = 2, sym = 0x31 (1) scancode = 40 (Return)
code = 3, sym = 0x32 (2) scancode = 41 (Escape)
code = 4, sym = 0x33 (3) scancode = 42 (Backspace)
...
(snipped long message about other keys)

Some keys work: shift, control, arrow keys, return. However, other keys such as Space, A, B, C, etc., result in:

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 38 (30), X11 KeySym 0x61 (a).
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 56 (4Cool, X11 KeySym 0x62 (b).
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 54 (46), X11 KeySym 0x63 (c).

(pressing 1 will result in SDL thinking I've pressed Escape).

Any suggestions for a fix? Compile my own SDL version?
StephenJSweeney


Joined: 29 Mar 2015
Posts: 15
I, today, downloaded and compiled SDL 2.0.4, which appears to have fixed the problem. I no longer see the errors coming up upon startup, and my keyboard works fine.

Good work, guys!