Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-03-03 23:13:33 +0000
committerStijn Buys <ingar@osirion.org>2012-03-03 23:13:33 +0000
commitf0a4a7d7213b61714542d64a7559648a086df26a (patch)
treebe1735fd6ff784b85639549ff399f66ee9590ea4 /src/client/keyboard.cc
parentf17abe1b819f6fb3f1ad755396a6e88ce21fd388 (diff)
Added +fire action, default bind to mouse button 2.
Diffstat (limited to 'src/client/keyboard.cc')
-rw-r--r--src/client/keyboard.cc4
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");