| 61 | } |
| 62 | |
| 63 | bool OrthographicCameraController::OnEvent(Event::CoreEvent& e) { |
| 64 | Event::EventDispatcher dispatcher(e); |
| 65 | dispatcher.Dispatch<Event::MouseButtonWheelEvent>(std::bind(&OrthographicCameraController::OnMouseButtonWheelMoved, this, std::placeholders::_1)); |
| 66 | return false; |
| 67 | } |
| 68 | |
| 69 | bool OrthographicCameraController::OnMouseButtonWheelMoved(Event::MouseButtonWheelEvent& e) { |
| 70 | m_zoom_factor -= m_move_speed * (float) e.GetOffetY(); |
nothing calls this directly
no outgoing calls
no test coverage detected