diff --git a/examples/sdl2_emulator.rs b/examples/sdl2_emulator.rs index 4dd24f4..a0f000b 100644 --- a/examples/sdl2_emulator.rs +++ b/examples/sdl2_emulator.rs @@ -291,7 +291,7 @@ impl retro::wrapper::Handler for MyEmulator { fn input_state(&mut self, port: u32, device: InputDeviceId, index: InputIndex) -> i16 { let gamepad_state = self.input_state_gamepad(port, &device, &index); - if gamepad_state > 0 { + if gamepad_state != 0 { return gamepad_state; }