isAPressed property
getter/setter pair
Tracks whether the A button is pressed, so the action is only done once.
Implementation
bool isAPressed = false;
Tracks whether the A button is pressed, so the action is only done once.
bool isAPressed = false;