pressed method

void pressed()

Implementation

void pressed() {
  isPressed = true;
  if (spritePressed != null) {
    _spriteToRender = spritePressed;
  }
}