Thread
:
Paintown : A fighting game engine like MUGEN [Working on the N900!]
View Single Post
jon5
2011-11-18 , 18:28
Posts: 8 | Thanked: 5 times | Joined on Nov 2011
#
38
SDL will translate OS mapped keys to an internal representation, at least thats my understanding.
In SDL, src/video/x11/SDL_x11events.c is a procedure named X11_TranslateKeycode which calls
Code:
xsym = XKeycodeToKeysym(display, kc, 0);
Which will read the global key mapping from X11.
Thus the SDL key mapping is a layer of abstraction above the OS and not a direct mapping to the hardware.
Quote & Reply
|
jon5
View Public Profile
Send a private message to jon5
Find all posts by jon5