better keyboard mappings
This commit is contained in:
parent
3a43b37de1
commit
e308af9a2a
|
@ -63,20 +63,20 @@ impl SimpleSdl2KeyboardComponent {
|
||||||
|
|
||||||
Ok(SimpleSdl2KeyboardComponent {
|
Ok(SimpleSdl2KeyboardComponent {
|
||||||
button_map: [
|
button_map: [
|
||||||
(Keycode::Up, InputDeviceId::Joypad(JoypadButton::Up)),
|
(Keycode::W, InputDeviceId::Joypad(JoypadButton::Up)),
|
||||||
(Keycode::Down, InputDeviceId::Joypad(JoypadButton::Down)),
|
(Keycode::S, InputDeviceId::Joypad(JoypadButton::Down)),
|
||||||
(Keycode::Left, InputDeviceId::Joypad(JoypadButton::Left)),
|
(Keycode::A, InputDeviceId::Joypad(JoypadButton::Left)),
|
||||||
(Keycode::Right, InputDeviceId::Joypad(JoypadButton::Right)),
|
(Keycode::D, InputDeviceId::Joypad(JoypadButton::Right)),
|
||||||
(Keycode::X, InputDeviceId::Joypad(JoypadButton::A)),
|
(Keycode::L, InputDeviceId::Joypad(JoypadButton::A)),
|
||||||
(Keycode::Z, InputDeviceId::Joypad(JoypadButton::B)),
|
(Keycode::K, InputDeviceId::Joypad(JoypadButton::B)),
|
||||||
(Keycode::S, InputDeviceId::Joypad(JoypadButton::X)),
|
(Keycode::I, InputDeviceId::Joypad(JoypadButton::X)),
|
||||||
(Keycode::A, InputDeviceId::Joypad(JoypadButton::Y)),
|
(Keycode::J, InputDeviceId::Joypad(JoypadButton::Y)),
|
||||||
(Keycode::Q, InputDeviceId::Joypad(JoypadButton::L)),
|
(Keycode::LShift, InputDeviceId::Joypad(JoypadButton::L)),
|
||||||
(Keycode::W, InputDeviceId::Joypad(JoypadButton::R)),
|
(Keycode::RShift, InputDeviceId::Joypad(JoypadButton::R)),
|
||||||
(Keycode::E, InputDeviceId::Joypad(JoypadButton::L2)),
|
(Keycode::LCtrl, InputDeviceId::Joypad(JoypadButton::L2)),
|
||||||
(Keycode::R, InputDeviceId::Joypad(JoypadButton::R2)),
|
(Keycode::RCtrl, InputDeviceId::Joypad(JoypadButton::R2)),
|
||||||
(Keycode::T, InputDeviceId::Joypad(JoypadButton::L3)),
|
(Keycode::LAlt, InputDeviceId::Joypad(JoypadButton::L3)),
|
||||||
(Keycode::Y, InputDeviceId::Joypad(JoypadButton::R3)),
|
(Keycode::RAlt, InputDeviceId::Joypad(JoypadButton::R3)),
|
||||||
(Keycode::Return, InputDeviceId::Joypad(JoypadButton::Start)),
|
(Keycode::Return, InputDeviceId::Joypad(JoypadButton::Start)),
|
||||||
(Keycode::Backspace, InputDeviceId::Joypad(JoypadButton::Select)),
|
(Keycode::Backspace, InputDeviceId::Joypad(JoypadButton::Select)),
|
||||||
(Keycode::Tab, InputDeviceId::Joypad(JoypadButton::Select)),
|
(Keycode::Tab, InputDeviceId::Joypad(JoypadButton::Select)),
|
||||||
|
|
Loading…
Reference in New Issue