X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fkeys.h;h=ffa97e5e4d4e33dea3cb99c30d169a0f29d3900c;hb=a6eecc5117d91534aaf13e93baf64855f4b963c0;hp=2cc42ce8251a4481a874976439ec6b35d435a1bf;hpb=589bf37829cadb0e4595fd97a2d6094a6471e985;p=libs%2Fgui.git diff --git a/source/input/keys.h b/source/input/keys.h index 2cc42ce..ffa97e5 100644 --- a/source/input/keys.h +++ b/source/input/keys.h @@ -1,10 +1,13 @@ #ifndef MSP_INPUT_KEYS_H_ #define MSP_INPUT_KEYS_H_ +#include +#include + namespace Msp { namespace Input { -enum +enum Key { KEY_NONE = 0x00, @@ -144,6 +147,28 @@ enum 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 +}; + +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