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