Input: Fix keyboard bindings (RGSS1 and 2 differ), add numpad enter -> C binding

This commit is contained in:
Jonas Kulla 2014-08-24 07:58:52 +02:00
parent 117ddeee5c
commit ce72e6d0ee
1 changed files with 25 additions and 16 deletions

View File

@ -196,20 +196,29 @@ static const KbBindingData defaultKbBindings[] =
{ {
{ SDL_SCANCODE_SPACE, Input::C }, { SDL_SCANCODE_SPACE, Input::C },
{ SDL_SCANCODE_RETURN, Input::C }, { SDL_SCANCODE_RETURN, Input::C },
{ SDL_SCANCODE_KP_ENTER, Input::C }, /* Treated as alias of RETURN */
{ SDL_SCANCODE_ESCAPE, Input::B }, { SDL_SCANCODE_ESCAPE, Input::B },
{ SDL_SCANCODE_KP_0, Input::B }, { SDL_SCANCODE_KP_0, Input::B },
{ SDL_SCANCODE_LSHIFT, Input::A }, { SDL_SCANCODE_LSHIFT, Input::A },
{ SDL_SCANCODE_RSHIFT, Input::A }, { SDL_SCANCODE_RSHIFT, Input::A },
{ SDL_SCANCODE_Z, Input::A },
{ SDL_SCANCODE_X, Input::B }, { SDL_SCANCODE_X, Input::B },
{ SDL_SCANCODE_C, Input::C },
{ SDL_SCANCODE_V, Input::None },
{ SDL_SCANCODE_B, Input::None }, { SDL_SCANCODE_B, Input::None },
{ SDL_SCANCODE_A, Input::X },
{ SDL_SCANCODE_S, Input::Y },
{ SDL_SCANCODE_D, Input::Z }, { SDL_SCANCODE_D, Input::Z },
{ SDL_SCANCODE_Q, Input::L }, { SDL_SCANCODE_Q, Input::L },
{ SDL_SCANCODE_W, Input::R } { SDL_SCANCODE_W, Input::R },
#if RGSS_VER == 1
{ SDL_SCANCODE_Z, Input::A },
{ SDL_SCANCODE_C, Input::C },
{ SDL_SCANCODE_V, Input::Z },
{ SDL_SCANCODE_A, Input::Y },
{ SDL_SCANCODE_S, Input::X }
#else
{ SDL_SCANCODE_Z, Input::C },
{ SDL_SCANCODE_C, Input::None },
{ SDL_SCANCODE_V, Input::None },
{ SDL_SCANCODE_A, Input::X },
{ SDL_SCANCODE_S, Input::Y }
#endif
}; };
static elementsN(defaultKbBindings); static elementsN(defaultKbBindings);