From f0a4a7d7213b61714542d64a7559648a086df26a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 3 Mar 2012 23:13:33 +0000 Subject: Added +fire action, default bind to mouse button 2. --- src/client/keyboard.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/keyboard.cc') 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"); -- cgit v1.2.3