X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fkeys.h;h=63d0926cf48565ea806faec7593819660a8d9bda;hb=24da3e62cf22663ef16b61b9510fbac49308f756;hp=7d4822cae3647ffa51047fe5ebc6c41ddb08b012;hpb=7312ff82ead10ae39f922f49b920d12dba28c9e8;p=libs%2Fgui.git diff --git a/source/input/keys.h b/source/input/keys.h index 7d4822c..63d0926 100644 --- a/source/input/keys.h +++ b/source/input/keys.h @@ -1,10 +1,12 @@ #ifndef MSP_INPUT_KEYS_H_ #define MSP_INPUT_KEYS_H_ +#include + namespace Msp { namespace Input { -enum +enum Key { KEY_NONE = 0x00, @@ -137,10 +139,35 @@ enum KEY_PAUSE = 0xE0, KEY_PRINT_SCREEN, KEY_MENU, + KEY_BACK, + KEY_VOLUME_UP, + KEY_VOLUME_DOWN, 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