From e1fe00ab649019514b0acefa2317ee1525dd8b0b Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 20 Sep 2021 03:26:06 -0300 Subject: [PATCH] fix: have start and select keybinds match other emulators --- src/joypad.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/joypad.rs b/src/joypad.rs index 5c5bf88..c2bd98c 100644 --- a/src/joypad.rs +++ b/src/joypad.rs @@ -147,17 +147,17 @@ pub fn handle_keyboard_input(pad: &mut Joypad, input: &WinitInputHelper) { state.dpad_right.update(false, irq); } - if input.key_pressed(VirtualKeyCode::T) { + if input.key_pressed(VirtualKeyCode::Return) { state.start.update(true, irq); } - if input.key_released(VirtualKeyCode::T) { + if input.key_released(VirtualKeyCode::Return) { state.start.update(false, irq); } - if input.key_pressed(VirtualKeyCode::Y) { + if input.key_pressed(VirtualKeyCode::RShift) { state.select.update(true, irq); } - if input.key_released(VirtualKeyCode::Y) { + if input.key_released(VirtualKeyCode::RShift) { state.select.update(false, irq); }