Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 5281:15a71bec4a55
merged
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Sat, 12 Feb 2011 19:16:09 -0800 |
parents | b530ef003506 |
children |
comparison
equal
deleted
inserted
replaced
5219:adfcdd311ae0 | 5281:15a71bec4a55 |
---|---|
1 /* | 1 /* |
2 SDL - Simple DirectMedia Layer | 2 SDL - Simple DirectMedia Layer |
3 Copyright (C) 1997-2010 Sam Lantinga | 3 Copyright (C) 1997-2011 Sam Lantinga |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Lesser General Public | 6 modify it under the terms of the GNU Lesser General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2.1 of the License, or (at your option) any later version. | 8 version 2.1 of the License, or (at your option) any later version. |
200 | 200 |
201 /* Key press? */ | 201 /* Key press? */ |
202 case KeyPress:{ | 202 case KeyPress:{ |
203 KeyCode keycode = xevent.xkey.keycode; | 203 KeyCode keycode = xevent.xkey.keycode; |
204 KeySym keysym = NoSymbol; | 204 KeySym keysym = NoSymbol; |
205 SDL_ScanCode scancode; | 205 SDL_Scancode scancode; |
206 char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; | 206 char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; |
207 Status status = 0; | 207 Status status = 0; |
208 | 208 |
209 #ifdef DEBUG_XEVENTS | 209 #ifdef DEBUG_XEVENTS |
210 printf("KeyPress (X11 keycode = 0x%X)\n", xevent.xkey.keycode); | 210 printf("KeyPress (X11 keycode = 0x%X)\n", xevent.xkey.keycode); |