]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.h
Add conversions to/from string for key names and device types
[libs/gui.git] / source / input / keys.h
index 2cc42ce8251a4481a874976439ec6b35d435a1bf..c974dc26b8896b6e23d7372aaa0b3fbc24ba5abb 100644 (file)
@@ -1,10 +1,12 @@
 #ifndef MSP_INPUT_KEYS_H_
 #define MSP_INPUT_KEYS_H_
 
+#include <msp/strings/lexicalcast.h>
+
 namespace Msp {
 namespace Input {
 
-enum
+enum Key
 {
        KEY_NONE = 0x00,
 
@@ -144,6 +146,9 @@ enum
        N_KEYS_ = 0x100
 };
 
+void operator>>(const LexicalConverter &, Key &);
+void operator<<(LexicalConverter &, Key);
+
 } // namespace Input
 } // namespace Msp