]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.h
Exception changes
[libs/gui.git] / source / input / keys.h
index e17459ae5f98d99e423ee1a789ac9d4ee34ef4e9..5727e685174265874831e0588ec27e24dda7642a 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgbase
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_INPUT_KEYS_H_
 #define MSP_INPUT_KEYS_H_
 
@@ -146,9 +139,20 @@ enum
        N_KEYS_ = 0x100
 };
 
+enum
+{
+       MOD_SHIFT = 1,
+       MOD_CONTROL = 2,
+       MOD_ALT = 4,
+       MOD_SUPER = 8,
+       N_MODS_ = 4
+};
+
 extern unsigned key_from_sys(unsigned);
 extern unsigned key_to_sys(unsigned);
 
+extern unsigned mod_from_sys(unsigned);
+
 } // namespace Input
 } // namespace Msp