| 57 | } |
| 58 | |
| 59 | bool PerspectiveCameraController::OnEvent(Event::CoreEvent& e) { |
| 60 | Event::EventDispatcher dispatcher(e); |
| 61 | dispatcher.Dispatch<Event::MouseButtonWheelEvent>(std::bind(&PerspectiveCameraController::OnMouseButtonWheelMoved, this, std::placeholders::_1)); |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | bool PerspectiveCameraController::OnMouseButtonWheelMoved(Event::MouseButtonWheelEvent& e) { |
| 66 | m_zoom_factor -= m_move_speed * static_cast<float>(e.GetOffetY()) * Engine::GetDeltaTime(); |
nothing calls this directly
no outgoing calls
no test coverage detected