isXPressed property

bool isXPressed
getter/setter pair

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

Implementation

bool isXPressed = false;