Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11keyboard.c @ 2298:41d2599b7117
one more time... I must be brain dead...
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Sat, 12 Jan 2008 16:56:42 +0000 |
parents | 9f712d1e77f2 |
children | a7cbc25071b6 |
comparison
equal
deleted
inserted
replaced
2297:9f712d1e77f2 | 2298:41d2599b7117 |
---|---|
857 creates a "fingerprint" of the X server's key-to-KeyCode | 857 creates a "fingerprint" of the X server's key-to-KeyCode |
858 mapping which is then matched against all our predefined | 858 mapping which is then matched against all our predefined |
859 KeyCodeToSDLK tables to find the right one (if any). | 859 KeyCodeToSDLK tables to find the right one (if any). |
860 */ | 860 */ |
861 | 861 |
862 /* *INDENT-ON* */ | 862 /* *INDENT-OFF* */ |
863 struct | 863 struct |
864 { | 864 { |
865 KeySym sym; | 865 KeySym sym; |
866 SDLKey key; | 866 SDLKey key; |
867 } fingerprint[] = { | 867 } fingerprint[] = |
868 { | 868 { |
869 XK_Tab, SDLK_TAB}, { | 869 {XK_Tab, SDLK_TAB}, |
870 XK_Return, SDLK_RETURN}, { | 870 {XK_Return, SDLK_RETURN}, |
871 XK_Escape, SDLK_ESCAPE}, { | 871 {XK_Escape, SDLK_ESCAPE}, |
872 XK_space, SDLK_SPACE} | 872 {XK_space, SDLK_SPACE} |
873 }; | 873 }; |
874 /* *INDENT-OFF* */ | 874 /* *INDENT-ON* */ |
875 | 875 |
876 SDL_zero(keyboard); | 876 SDL_zero(keyboard); |
877 data->keyboard = SDL_AddKeyboard(&keyboard, -1); | 877 data->keyboard = SDL_AddKeyboard(&keyboard, -1); |
878 | 878 |
879 /* Determine which X11 KeyCode to SDL physical key code table to use */ | 879 /* Determine which X11 KeyCode to SDL physical key code table to use */ |