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

Method OnEvent

ZEngine/src/OrbitCameraController.cpp:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected