View Single Post
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.