X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcontrol%2Fjoystickkeyboardcontroller.cpp;h=e3bba1be2aa78173528da2c3456d0dd48d2ee256;hb=38105c22495d9439b30221732dd5d7b89f328a0c;hp=92ccabce069e0f662621ea06f706103c13541b53;hpb=2cbec953a1529844ef44309afe086205b442fdb9;p=supertux.git diff --git a/src/control/joystickkeyboardcontroller.cpp b/src/control/joystickkeyboardcontroller.cpp index 92ccabce0..e3bba1be2 100644 --- a/src/control/joystickkeyboardcontroller.cpp +++ b/src/control/joystickkeyboardcontroller.cpp @@ -410,7 +410,7 @@ JoystickKeyboardController::process_axis_event(const SDL_JoyAxisEvent& jaxis) else { // Split the axis into left and right, so that both can be - // mapped seperatly (needed for jump/down vs up/down) + // mapped separately (needed for jump/down vs up/down) int axis = jaxis.axis + 1; AxisMap::iterator left = joy_axis_map.find(-axis); @@ -567,7 +567,7 @@ JoystickKeyboardController::process_console_key_event(const SDL_Event& event) default: int c = event.key.keysym.unicode; if ((c >= 32) && (c <= 126)) { - Console::instance->input((char)c); + Console::instance->input((char)c); } break; } @@ -937,16 +937,16 @@ JoystickKeyboardController::JoystickMenu::recreateMenu() add_toggle(Controller::CONTROLCOUNT, _("Jump with Up"), controller->jump_with_up_joy); } else { - add_deactive(-1, _("No Joysticks found")); + add_inactive(-1, _("No Joysticks found")); } - add_deactive(-1,""); + add_inactive(-1,""); add_entry(SCAN_JOYSTICKS, _("Scan for Joysticks")); //Show Joysticks currently activated: for(std::vector::iterator i = controller->joysticks.begin(); i != controller->joysticks.end(); ++i) { if(*i != 0) - add_deactive(-1, SDL_JoystickName(SDL_JoystickIndex(*i)) ); + add_inactive(-1, SDL_JoystickName(SDL_JoystickIndex(*i)) ); } add_hl();