diff options
author | Stijn Buys <ingar@osirion.org> | 2012-03-03 23:13:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-03-03 23:13:33 +0000 |
commit | f0a4a7d7213b61714542d64a7559648a086df26a (patch) | |
tree | be1735fd6ff784b85639549ff399f66ee9590ea4 /src/client/keyboard.cc | |
parent | f17abe1b819f6fb3f1ad755396a6e88ce21fd388 (diff) |
Added +fire action, default bind to mouse button 2.
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"); |