MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / OnEvent

Method OnEvent

ZEngine/src/OrthographicCameraController.cpp:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected