diff --git a/src/backend/sdl2_backend.rs b/src/backend/sdl2_backend.rs index bf0c0d9..9daa65f 100644 --- a/src/backend/sdl2_backend.rs +++ b/src/backend/sdl2_backend.rs @@ -125,6 +125,12 @@ fn keycode_to_keypad(keycode: Keycode) -> Option { Keycode::Down => Some(keypad::Keys::Down), Keycode::Left => Some(keypad::Keys::Left), Keycode::Right => Some(keypad::Keys::Right), + Keycode::Z => Some(keypad::Keys::ButtonB), + Keycode::X => Some(keypad::Keys::ButtonA), + Keycode::Return => Some(keypad::Keys::Start), + Keycode::Space => Some(keypad::Keys::Select), + Keycode::A => Some(keypad::Keys::ButtonL), + Keycode::S => Some(keypad::Keys::ButtonR), _ => None, } }