| 99 | } |
| 100 | |
| 101 | bool TitleScreen::handleInputEvent(InputEvent const& event) { |
| 102 | if (auto mouseMove = event.ptr<MouseMoveEvent>()) |
| 103 | m_cursorScreenPos = Vec2I(mouseMove->mousePosition); |
| 104 | |
| 105 | if (event.is<KeyDownEvent>()) { |
| 106 | if (GuiContext::singleton().actions(event).contains(InterfaceAction::TitleBack)) { |
| 107 | back(); |
| 108 | return true; |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | return m_paneManager.sendInputEvent(event); |
| 113 | } |
| 114 | |
| 115 | void TitleScreen::update(float dt) { |
| 116 | m_cursor.update(dt); |
nothing calls this directly
no test coverage detected