updateState method

  1. @override
void updateState(
  1. 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;
}