| 527 | } |
| 528 | |
| 529 | void GameEventHandler::OnBackInvoked() |
| 530 | { |
| 531 | if (_currentHandler != nullptr && _backInvokedTimeLeft <= 0) { |
| 532 | // The back button needs to be pressed for at least 2 frames |
| 533 | _backInvokedTimeLeft = 2; |
| 534 | |
| 535 | KeyboardEvent event{}; |
| 536 | event.sym = Keys::Back; |
| 537 | _currentHandler->OnKeyPressed(event); |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | void GameEventHandler::OnKeyPressed(const KeyboardEvent& event) |
| 542 | { |
nothing calls this directly
no test coverage detected