X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fkeys.h;h=c974dc26b8896b6e23d7372aaa0b3fbc24ba5abb;hb=7302a061c57602203895b616bf54d96269c677c6;hp=c5822f89e14870170d09c3520be2e3720457e41e;hpb=1aca77b93853ee127ac3bbf6886f7f04920542ef;p=libs%2Fgui.git diff --git a/source/input/keys.h b/source/input/keys.h index c5822f8..c974dc2 100644 --- a/source/input/keys.h +++ b/source/input/keys.h @@ -1,11 +1,15 @@ #ifndef MSP_INPUT_KEYS_H_ #define MSP_INPUT_KEYS_H_ +#include + namespace Msp { namespace Input { -enum +enum Key { + KEY_NONE = 0x00, + // Codes 0x01-0x7E reserved for ASCII KEY_BACKSPACE = 0x08, KEY_TAB = 0x09, @@ -135,10 +139,16 @@ enum KEY_PAUSE = 0xE0, KEY_PRINT_SCREEN, KEY_MENU, + KEY_BACK, + KEY_VOLUME_UP, + KEY_VOLUME_DOWN, N_KEYS_ = 0x100 }; +void operator>>(const LexicalConverter &, Key &); +void operator<<(LexicalConverter &, Key); + } // namespace Input } // namespace Msp