MCPcopy Create free account
hub / github.com/VCVRack/Rack / cursorUnlock

Method cursorUnlock

src/window/Window.cpp:663–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

661
662
663void Window::cursorUnlock() {
664 if (!settings::allowCursorLock)
665 return;
666 if (!internal->cursorLocked)
667 return;
668
669 // Restore cursor position when locked
670 glfwSetCursorPos(win, internal->cursorLockedPosX, internal->cursorLockedPosY);
671 internal->cursorLocked = false;
672 glfwSetInputMode(win, GLFW_CURSOR, GLFW_CURSOR_NORMAL);
673}
674
675
676bool Window::isCursorLocked() {

Callers 2

onDragEndMethod · 0.80
onDragEndMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected