Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoavideo.h @ 1959:25d6537feea4
Implemented Cocoa key event handling.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 30 Jul 2006 05:18:33 +0000 |
parents | 83946ee0ff1f |
children | 13cf2d5eda86 |
comparison
equal
deleted
inserted
replaced
1958:5fc6fb0fb605 | 1959:25d6537feea4 |
---|---|
25 #define _SDL_cocoavideo_h | 25 #define _SDL_cocoavideo_h |
26 | 26 |
27 #include <ApplicationServices/ApplicationServices.h> | 27 #include <ApplicationServices/ApplicationServices.h> |
28 #include <Cocoa/Cocoa.h> | 28 #include <Cocoa/Cocoa.h> |
29 | 29 |
30 #include "SDL_keysym.h" | |
30 #include "../SDL_sysvideo.h" | 31 #include "../SDL_sysvideo.h" |
31 | 32 |
32 #include "SDL_cocoaevents.h" | 33 #include "SDL_cocoaevents.h" |
33 #include "SDL_cocoakeyboard.h" | 34 #include "SDL_cocoakeyboard.h" |
34 #include "SDL_cocoamodes.h" | 35 #include "SDL_cocoamodes.h" |
38 | 39 |
39 /* Private display data */ | 40 /* Private display data */ |
40 | 41 |
41 typedef struct SDL_VideoData | 42 typedef struct SDL_VideoData |
42 { | 43 { |
44 SInt32 osversion; | |
45 SDLKey keymap[256]; | |
46 unsigned int modifierFlags; | |
43 int mouse; | 47 int mouse; |
44 int keyboard; | 48 int keyboard; |
45 } SDL_VideoData; | 49 } SDL_VideoData; |
46 | 50 |
47 #endif /* _SDL_cocoavideo_h */ | 51 #endif /* _SDL_cocoavideo_h */ |