]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/Keymap.hpp
per block type "gravity"
[blank.git] / src / ui / Keymap.hpp
index e96179ae9c4f8bce945251560163bb0125617fb1..c74308018de5add44c923416b8782dbefa761b3a 100644 (file)
@@ -21,24 +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,
-
-               PRINT_BLOCK,
-               PRINT_CHUNK,
-               PRINT_LIGHT,
-               PRINT_SELECTION,
+               CAMERA_NEXT,
 
                EXIT,
        };
@@ -50,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();