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 1276

Summary: Keyboard letter keys is not working with SDL_keysym.h references
Product: SDL Reporter: Artur Komarov <artur.komarov>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.14   
Hardware: x86   
OS: Mac OS X 10.6   
Attachments: used to check keycodes

Description Artur Komarov 2011-08-15 00:26:53 UTC
Created attachment 674 [details]
used to check keycodes

Keyboard letter keys has another codes rather described in SDL_keysym.h
for example
        SDLK_a                  = 97,
        SDLK_b                  = 98,
        SDLK_c                  = 99,
        SDLK_d                  = 100,
        SDLK_e                  = 101,
        SDLK_f                  = 102,

real codes:
a 160
b 170
c 168
d 162
e 173
f 163

as result SDL applications didn't react when i'm press any letter key.

application i'm tried: mupen64plus, exult
Comment 1 Sam Lantinga 2011-12-29 01:49:25 UTC
Your keyboard is generating the SDL "world" keys, which are used on certain international keyboards.  Programs which are written to use specific keys should either check the unicode input for specific characters (for text input), or allow controls to be rebound.

SDL 1.3 has an improved mechanism for specifying positional scancodes separately from layout keycodes to address exactly this problem.