switch (aMessage) { case MessageType::Up: case MessageType::Left: if (myInputTimer > 0.0f) { break; } case MessageType::UpOnce: case MessageType::LeftOnce: myInputTimer = myInputDelay; //switch highlighted button break; case MessageType::Down: case MessageType::Right: if (myInputTimer > 0.0f) { break; } case MessageType::DownOnce: case MessageType::RightOnce: myInputTimer = myInputDelay; //switch highlighted button break; case MessageType::Confirm: //activate highlighted button break; default: break; }