changed name to SetCursorDisabled
This commit is contained in:
parent
93a24aa6df
commit
fc29ad7886
|
@ -369,8 +369,9 @@ func (w *Window) SetCursorVisible(visible bool) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// DisableCursor hides the cursor and provides unlimited virtual cursor movement
|
// SetCursorDisabled hides the cursor and provides unlimited virtual cursor movement
|
||||||
func (w *Window) DisableCursor() {
|
// make cursor visible using SetCursorVisible
|
||||||
|
func (w *Window) SetCursorDisabled() {
|
||||||
w.cursorVisible = false
|
w.cursorVisible = false
|
||||||
mainthread.Call(func() {
|
mainthread.Call(func() {
|
||||||
w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled)
|
w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled)
|
||||||
|
|
Loading…
Reference in New Issue