| 35 | } |
| 36 | |
| 37 | bool OrbitCameraController::OnEvent(Event::CoreEvent& e) { |
| 38 | Event::EventDispatcher dispatcher(e); |
| 39 | dispatcher.Dispatch<Event::MouseButtonMovedEvent>(std::bind(&OrbitCameraController::OnMouseButtonMoved, this, std::placeholders::_1)); |
| 40 | return PerspectiveCameraController::OnEvent(e); |
| 41 | } |
| 42 | |
| 43 | bool OrbitCameraController::OnMouseButtonMoved(Event::MouseButtonMovedEvent& e) { |
| 44 | m_mouse_cursor_pos.x = static_cast<float>(e.GetPosX()); |
nothing calls this directly
no outgoing calls
no test coverage detected