diff 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
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_atarievents_c.h	Tue Sep 12 19:34:18 2006 +0000
+++ b/src/video/ataricommon/SDL_atarievents_c.h	Wed Sep 13 21:18:35 2006 +0000
@@ -35,12 +35,31 @@
 /* Hidden "this" pointer for the video functions */
 #define _THIS	SDL_VideoDevice *this
 
+#define ATARIBIOS_MAXKEYS 128
+
+/* Special keys state */
+#ifndef K_RSHIFT
+enum {
+	K_RSHIFT=0,
+	K_LSHIFT,
+	K_CTRL,
+	K_ALT,
+	K_CAPSLOCK,
+	K_CLRHOME,
+	K_INSERT
+};
+#endif
+
 extern void (*Atari_ShutdownEvents)(void);
 
 extern void Atari_InitOSKeymap(_THIS);
 extern void Atari_PumpEvents(_THIS);
 
+extern void SDL_Atari_InitInternalKeymap(_THIS);
+
 /* Atari to Unicode charset translation table */
 extern Uint16 SDL_AtariToUnicodeTable[256];
+SDL_keysym *SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym,
+	SDL_bool pressed);
 
 #endif /* _SDL_ATARI_EVENTS_H_ */