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>2008-08-24 21:36:39 +0000
committerStijn Buys <ingar@osirion.org>2008-08-24 21:36:39 +0000
commite6272cd7d356bbb047dcaebb03ae217235e1e13f (patch)
tree7c7c6551a2d7051d10b0c4f0c4d87554365c63de /src/client/keyboard.cc
parent9c4d134ab304794b755139e90ca6da9de73a1e9a (diff)
afterburner/reverse/strafe
Diffstat (limited to 'src/client/keyboard.cc')
-rw-r--r--src/client/keyboard.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc
index aac6548..ae21eb1 100644
--- a/src/client/keyboard.cc
+++ b/src/client/keyboard.cc
@@ -49,6 +49,12 @@ Keyboard::Keyboard()
add_action("+thrustup", Action::None, "increase thruster");
add_action("+thrustdown", Action::None, "decrease thruster");
+ add_action("+strafeleft", Action::None, "strafe left");
+ add_action("+straferight", Action::None, "strafe right");
+
+ add_action("+afterburner", Action::None, "afterburner");
+ add_action("+reverse", Action::None, "reverse engine");
+
add_action("+control", Action::None, "enable mouse control while pressed");
// ------------------ KEYS
@@ -102,10 +108,10 @@ Keyboard::Keyboard()
add_key("_", SDLK_UNDERSCORE, '_');
add_key("`", SDLK_BACKQUOTE, '`', "ui_console");
- add_key("a", SDLK_a, 'a');
+ add_key("a", SDLK_a, 'a', "+strafeleft");
add_key("b", SDLK_b, 'b');
add_key("c", SDLK_c, 'c');
- add_key("d", SDLK_d, 'd');
+ add_key("d", SDLK_d, 'd', "+straferight");
add_key("e", SDLK_e, 'e');
add_key("f", SDLK_f, 'f');
add_key("g", SDLK_g, 'g');
@@ -121,13 +127,13 @@ Keyboard::Keyboard()
add_key("p", SDLK_p, 'p');
add_key("q", SDLK_q, 'q');
add_key("r", SDLK_r, 'r');
- add_key("s", SDLK_s, 's');
+ add_key("s", SDLK_s, 's', "+reverse");
add_key("t", SDLK_t, 't', "ui_chat");
add_key("u", SDLK_u, 'u');
key = add_key("v", SDLK_v, 'v', "view_next");
key->assign(Key::Shift, "view_prev");
- add_key("w", SDLK_w, 'w');
+ add_key("w", SDLK_w, 'w', "+afterburner");
add_key("x", SDLK_x, 'x', "target_center");
add_key("y", SDLK_y, 'y');
add_key("z", SDLK_z, 'z');
@@ -264,6 +270,7 @@ void Keyboard::save_binds()
ofs << "# binds.cfg - osirion keyboard binds" << std::endl;
ofs << "# this file is automaticly generated" << std::endl;
+ ofs << std::endl;
iterator it;
for (it = begin(); it != end(); it++) {