Set w.cursorVisible Properly
This commit is contained in:
parent
ec0dbe4fc4
commit
aa01c98322
|
@ -320,7 +320,7 @@ func (w *Window) VSync() bool {
|
||||||
|
|
||||||
// SetCursorDisabled both hides the cursor, as well as limits cursor movement to the Window client area.
|
// SetCursorDisabled both hides the cursor, as well as limits cursor movement to the Window client area.
|
||||||
func (w *Window) SetCursorDisabled(disabled bool) {
|
func (w *Window) SetCursorDisabled(disabled bool) {
|
||||||
w.cursorVisible = false
|
w.cursorVisible = !disabled
|
||||||
mainthread.Call(func() {
|
mainthread.Call(func() {
|
||||||
if disabled {
|
if disabled {
|
||||||
w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled)
|
w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled)
|
||||||
|
|
Loading…
Reference in New Issue