Example #1
0
 private void EnterMouseMode()
 {
     if (mouseCursorModeSaved != mouseCursorModeActive)
     {
         GLFWNativeCalls.setMouseMode(mouseCursorModeSaved);
         mouseCursorModeActive = mouseCursorModeSaved;
     }
 }
Example #2
0
        private void ExitMouseMode()
        {
            if (mouseCursorModeSaved == GLFW_CURSOR_DISABLED)
            {
                GLFWNativeCalls.setMouseMode(GLFW_CURSOR_NORMAL);
                mouseCursorModeActive = GLFW_CURSOR_NORMAL;
            }

            mouseInitDelta = true;
        }