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

Method OnMouseButtonMoved

ZEngine/src/OrbitCameraController.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 bool OrbitCameraController::OnMouseButtonMoved(Event::MouseButtonMovedEvent& e) {
44 m_mouse_cursor_pos.x = static_cast<float>(e.GetPosX());
45 m_mouse_cursor_pos.y = static_cast<float>(e.GetPosY());
46 return false;
47 }
48
49 bool OrbitCameraController::OnMouseButtonWheelMoved(Event::MouseButtonWheelEvent& e) {
50 auto camera = reinterpret_cast<Rendering::Cameras::OrbitCamera*>(m_perspective_camera.get());

Callers

nothing calls this directly

Calls 2

GetPosXMethod · 0.80
GetPosYMethod · 0.80

Tested by

no test coverage detected