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,
-
EXIT,
};
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();