use gamepad_state for any non-zero value, instead of just positive ones.
This commit is contained in:
parent
032956d343
commit
84973982b4
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ impl retro::wrapper::Handler for MyEmulator {
|
||||||
|
|
||||||
fn input_state(&mut self, port: u32, device: InputDeviceId, index: InputIndex) -> i16 {
|
fn input_state(&mut self, port: u32, device: InputDeviceId, index: InputIndex) -> i16 {
|
||||||
let gamepad_state = self.input_state_gamepad(port, &device, &index);
|
let gamepad_state = self.input_state_gamepad(port, &device, &index);
|
||||||
if gamepad_state > 0 {
|
if gamepad_state != 0 {
|
||||||
return gamepad_state;
|
return gamepad_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue