]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.h
Add constants for mouse axes and buttons
[libs/gui.git] / source / input / keys.h
index c974dc26b8896b6e23d7372aaa0b3fbc24ba5abb..63d0926cf48565ea806faec7593819660a8d9bda 100644 (file)
@@ -146,8 +146,27 @@ enum Key
        N_KEYS_ = 0x100
 };
 
+enum MouseAxis
+{
+       MOUSE_X_AXIS = 0,
+       MOUSE_Y_AXIS,
+};
+
+enum MouseButton
+{
+       MOUSE_LEFT = 1,
+       MOUSE_MIDDLE,
+       MOUSE_RIGHT,
+       MOUSE_WHEEL_UP,
+       MOUSE_WHEEL_DOWN
+};
+
 void operator>>(const LexicalConverter &, Key &);
 void operator<<(LexicalConverter &, Key);
+void operator>>(const LexicalConverter &, MouseAxis &);
+void operator<<(LexicalConverter &, MouseAxis);
+void operator>>(const LexicalConverter &, MouseButton &);
+void operator<<(LexicalConverter &, MouseButton);
 
 } // namespace Input
 } // namespace Msp