diff options
Diffstat (limited to 'src/client/keyboard.cc')
-rw-r--r-- | src/client/keyboard.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc index 62032b8..baef74c 100644 --- a/src/client/keyboard.cc +++ b/src/client/keyboard.cc @@ -61,6 +61,8 @@ Keyboard::Keyboard() add_action("+reverse", Action::Reverse, "reverse engine"); add_action("+control", Action::Control, "enable mouse control while pressed"); + + add_action("+fire", Action::Fire, "fire weapons"); // ------------------ KEYS Key *key = 0; @@ -223,7 +225,7 @@ Keyboard::Keyboard() // mouse button aliases add_key("mouse1", 512 + SDL_BUTTON_LEFT, 0, "+control"); - add_key("mouse2", 512 + SDL_BUTTON_RIGHT); + add_key("mouse2", 512 + SDL_BUTTON_RIGHT, 0, "+fire"); add_key("mouse3", 512 + SDL_BUTTON_MIDDLE); add_key("mouse4", 512 + SDL_BUTTON_WHEELUP, 0, "+thrustup"); |