Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_atarievents_c.h @ 3860:bf1586b58ef2 SDL-1.2
Factorize keyboard mapping between drivers
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 13 Sep 2006 21:18:35 +0000 |
parents | d910939febfa |
children | a1b03ba2fcd0 |
comparison
equal
deleted
inserted
replaced
3859:5d14acfdf84d | 3860:bf1586b58ef2 |
---|---|
33 #include "../SDL_sysvideo.h" | 33 #include "../SDL_sysvideo.h" |
34 | 34 |
35 /* Hidden "this" pointer for the video functions */ | 35 /* Hidden "this" pointer for the video functions */ |
36 #define _THIS SDL_VideoDevice *this | 36 #define _THIS SDL_VideoDevice *this |
37 | 37 |
38 #define ATARIBIOS_MAXKEYS 128 | |
39 | |
40 /* Special keys state */ | |
41 #ifndef K_RSHIFT | |
42 enum { | |
43 K_RSHIFT=0, | |
44 K_LSHIFT, | |
45 K_CTRL, | |
46 K_ALT, | |
47 K_CAPSLOCK, | |
48 K_CLRHOME, | |
49 K_INSERT | |
50 }; | |
51 #endif | |
52 | |
38 extern void (*Atari_ShutdownEvents)(void); | 53 extern void (*Atari_ShutdownEvents)(void); |
39 | 54 |
40 extern void Atari_InitOSKeymap(_THIS); | 55 extern void Atari_InitOSKeymap(_THIS); |
41 extern void Atari_PumpEvents(_THIS); | 56 extern void Atari_PumpEvents(_THIS); |
42 | 57 |
58 extern void SDL_Atari_InitInternalKeymap(_THIS); | |
59 | |
43 /* Atari to Unicode charset translation table */ | 60 /* Atari to Unicode charset translation table */ |
44 extern Uint16 SDL_AtariToUnicodeTable[256]; | 61 extern Uint16 SDL_AtariToUnicodeTable[256]; |
62 SDL_keysym *SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym, | |
63 SDL_bool pressed); | |
45 | 64 |
46 #endif /* _SDL_ATARI_EVENTS_H_ */ | 65 #endif /* _SDL_ATARI_EVENTS_H_ */ |