changed name to SetCursorDisabled

This commit is contained in:
Jared 2020-02-07 16:22:39 -07:00
parent 93a24aa6df
commit fc29ad7886
1 changed files with 3 additions and 2 deletions

View File

@ -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)