]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.h
Update .gitignore to include build products on Windows
[libs/gui.git] / source / input / keys.h
index c974dc26b8896b6e23d7372aaa0b3fbc24ba5abb..ffa97e5e4d4e33dea3cb99c30d169a0f29d3900c 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_INPUT_KEYS_H_
 #define MSP_INPUT_KEYS_H_
 
+#include <msp/graphics/mspgui_api.h>
 #include <msp/strings/lexicalcast.h>
 
 namespace Msp {
@@ -146,8 +147,27 @@ enum Key
        N_KEYS_ = 0x100
 };
 
-void operator>>(const LexicalConverter &, Key &);
-void operator<<(LexicalConverter &, Key);
+enum MouseAxis
+{
+       MOUSE_X_AXIS = 0,
+       MOUSE_Y_AXIS,
+};
+
+enum MouseButton
+{
+       MOUSE_LEFT = 1,
+       MOUSE_MIDDLE,
+       MOUSE_RIGHT,
+       MOUSE_WHEEL_UP,
+       MOUSE_WHEEL_DOWN
+};
+
+MSPGUI_API void operator>>(const LexicalConverter &, Key &);
+MSPGUI_API void operator<<(LexicalConverter &, Key);
+MSPGUI_API void operator>>(const LexicalConverter &, MouseAxis &);
+MSPGUI_API void operator<<(LexicalConverter &, MouseAxis);
+MSPGUI_API void operator>>(const LexicalConverter &, MouseButton &);
+MSPGUI_API void operator<<(LexicalConverter &, MouseButton);
 
 } // namespace Input
 } // namespace Msp