X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FKeymap.hpp;h=c74308018de5add44c923416b8782dbefa761b3a;hb=ed3bdc028edc0ecb5835d1c0bf18dbc59b342daf;hp=0e34ba9979d2406a78b98e91171e242702c0bcda;hpb=dbfcb12348b80e2582f710acb1e4ed0011889ba2;p=blank.git diff --git a/src/ui/Keymap.hpp b/src/ui/Keymap.hpp index 0e34ba9..c743080 100644 --- a/src/ui/Keymap.hpp +++ b/src/ui/Keymap.hpp @@ -21,19 +21,28 @@ public: MOVE_UP, MOVE_DOWN, - BLOCK_FACE, - BLOCK_TURN, - BLOCK_NEXT, - BLOCK_PREV, + PRIMARY, + SECONDARY, + TERTIARY, + + INV_NEXT, + INV_PREVIOUS, + INV_1, + INV_2, + INV_3, + INV_4, + INV_5, + INV_6, + INV_7, + INV_8, + INV_9, + INV_10, - BLOCK_PLACE, - BLOCK_PICK, - BLOCK_REMOVE, - - TOGGLE_COLLISION, TOGGLE_AUDIO, - TOGGLE_VISUAL, + TOGGLE_VIDEO, + TOGGLE_HUD, TOGGLE_DEBUG, + CAMERA_NEXT, EXIT, }; @@ -45,9 +54,9 @@ public: Keymap(); void Map(SDL_Scancode scancode, Action); - Action Lookup(SDL_Scancode scancode); - Action Lookup(const SDL_Keysym &s) { return Lookup(s.scancode); } - Action Lookup(const SDL_KeyboardEvent &e) { return Lookup(e.keysym); } + Action Lookup(SDL_Scancode scancode) const; + Action Lookup(const SDL_Keysym &s) const { return Lookup(s.scancode); } + Action Lookup(const SDL_KeyboardEvent &e) const { return Lookup(e.keysym); } void LoadDefault();