MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / MouseButtonUpdate

Method MouseButtonUpdate

Rtxpt/Sample.cpp:727–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727bool Sample::MouseButtonUpdate(int button, int action, int mods)
728{
729 if (m_zoomTool)
730 if (m_zoomTool->MouseButtonUpdate(button, action, mods))
731 return true;
732
733 if (!(m_sampleGame && m_sampleGame->CameraActive()))
734 m_camera.MouseButtonUpdate(button, action, mods);
735 if (m_sampleGame) m_sampleGame->MouseButtonUpdate(button, action, mods);
736
737 if (action == GLFW_PRESS && button == GLFW_MOUSE_BUTTON_2)
738 {
739 m_pick = true;
740 m_ui.DebugPixel = m_pickPosition;
741 }
742
743#if DONUT_WITH_STREAMLINE
744 if (button == GLFW_MOUSE_BUTTON_LEFT && action == GLFW_PRESS)
745 {
746 GetDeviceManager()->GetStreamline().ReflexTriggerFlash(GetFrameIndex());
747 }
748#endif
749
750 return true;
751}
752
753bool Sample::MouseScrollUpdate(double xoffset, double yoffset)
754{

Callers

nothing calls this directly

Calls 1

CameraActiveMethod · 0.80

Tested by

no test coverage detected