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
|
||||
func (w *Window) DisableCursor() {
|
||||
// SetCursorDisabled hides the cursor and provides unlimited virtual cursor movement
|
||||
// make cursor visible using SetCursorVisible
|
||||
func (w *Window) SetCursorDisabled() {
|
||||
w.cursorVisible = false
|
||||
mainthread.Call(func() {
|
||||
w.window.SetInputMode(glfw.CursorMode, glfw.CursorDisabled)
|
||||
|
|
Loading…
Reference in New Issue