From e6272cd7d356bbb047dcaebb03ae217235e1e13f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 24 Aug 2008 21:36:39 +0000 Subject: afterburner/reverse/strafe --- src/client/keyboard.cc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/client/keyboard.cc') 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++) { -- cgit v1.2.3