updateState method
- @override
- GamepadState state
override
Any logic to run before checking parseInputs.
Implementation
@override
void updateState(GamepadState state) {
if (!state.buttonA) isAPressed = false;
if (!state.buttonB) isBPressed = false;
if (!state.buttonX) isXPressed = false;
if (!state.buttonY) isYPressed = false;
}