use gamepad_state for any non-zero value, instead of just positive ones.
This commit is contained in:
parent
032956d343
commit
84973982b4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue