isBPressed property

bool isBPressed
getter/setter pair

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

Implementation

bool isBPressed = false;