We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4895 - Keyboard event doesn't return sym value when "nonusbackslash" key is pressed
Summary: Keyboard event doesn't return sym value when "nonusbackslash" key is pressed
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.10
Hardware: ARM Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.16
Depends on:
Blocks:
 
Reported: 2019-12-10 19:01 UTC by rosenrost
Modified: 2020-07-16 18:29 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rosenrost 2019-12-10 19:01:55 UTC
I am running Hatari, an Atari ST emulator, on my Raspberry Pi 3B. Hatari uses SDL2 in order to display graphics without X11. I am using a German keyboard which has a key next to the left shift key that is missing on US keyboard layouts. This key is not recognized by Hatari.

After adding some debug messages to Hataris keyboard handling functions, I discoverd that the keyboard event returns 0 in the sym field of the SDL_keysym structure, while the correct scan code (100) is returned in the scancode field of that structure.

In my case (German keyboard layout, but it's the same on any western European keyboard except UK), the the characters "<" and ">" are mapped to this key, so I really need it. So, SDL_keysym.sym should be 60 and not 0.
Comment 1 rosenrost 2019-12-11 15:23:53 UTC
Oh, I forgot to mention that the RPI driver is used.