isAPressed property

bool isAPressed
getter/setter pair

Tracks whether the A button is pressed, so the action is only done once.

Implementation

bool isAPressed = false;