diff -r 824a9837bbb3 -r 71f60bf6ebb7 sdlterm/src/sdlterm.h --- 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); };