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 - Keyboard letter keys is not working with SDL_keysym.h references
Summary: Keyboard letter keys is not working with SDL_keysym.h references
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 1.2.14
Hardware: x86 Mac OS X 10.6
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 00:26 UTC by Artur Komarov
Modified: 2011-12-29 01:49 UTC (History)
0 users

See Also:


Attachments
used to check keycodes (799 bytes, application/octet-stream)
2011-08-15 00:26 UTC, Artur Komarov
Details

Note You need to log in before you can comment on or make changes to this bug.
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.