diff --git a/packages/gamepads_platform_interface/lib/api/gamepad_state.dart b/packages/gamepads_platform_interface/lib/api/gamepad_state.dart index e80f469..d2583fd 100644 --- a/packages/gamepads_platform_interface/lib/api/gamepad_state.dart +++ b/packages/gamepads_platform_interface/lib/api/gamepad_state.dart @@ -20,7 +20,7 @@ class GamepadState { analogInputs[event.key] = event.value; break; case KeyType.button: - buttonInputs[event.key] = event.value == 1; + buttonInputs[event.key] = event.value != 0; break; } }