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