| 725 | } |
| 726 | |
| 727 | bool 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 | |
| 753 | bool Sample::MouseScrollUpdate(double xoffset, double yoffset) |
| 754 | { |
nothing calls this directly
no test coverage detected