use gamepad_state for any non-zero value, instead of just positive ones.

This commit is contained in:
Vivian Lim 2019-12-23 21:23:18 -08:00
parent 032956d343
commit 84973982b4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}