sdlterm/src/sdlterm.h
changeset 67 71f60bf6ebb7
parent 61 15088f62c4ac
child 71 cfd3445107b4
--- a/sdlterm/src/sdlterm.h	Wed Jan 23 00:59:21 2013 +0100
+++ b/sdlterm/src/sdlterm.h	Wed Jan 23 21:49:40 2013 +0100
@@ -18,6 +18,17 @@
 };
 
 
+namespace KeyMod
+{
+    enum {
+        SHIFT = 1<<0,
+        ALT   = 1<<1,
+        CTRL  = 1<<2,
+        META  = 1<<3,
+    };
+};
+
+
 class ColorMap
 {
 private:
@@ -175,6 +186,7 @@
         {
             char keyname[10];
             Uint32 unicode;
+            int mod;
         } key;
         struct
         {
@@ -226,6 +238,7 @@
     int _mousemove_last_y;
 
     const char *_translate_keyname(SDLKey sym);
+    int _translate_mod(SDLMod mod);
     static Uint32 _wait_event_callback(Uint32 interval, void *param);
     static Uint32 _blink_toggle_callback(Uint32 interval, void *param);
 };