Esempio n. 1
0
func ShowCursor(show bool) {
	if show {
		C.SDL_ShowCursor(C.SDL_TRUE)
	} else {
		C.SDL_ShowCursor(C.SDL_FALSE)
	}
}
Esempio n. 2
0
// Toggle whether or not the cursor is shown on the screen.
func ShowCursor(toggle int) int {
	GlobalMutex.Lock()
	state := int(C.SDL_ShowCursor((C.int)(toggle)))
	GlobalMutex.Unlock()
	return state
}
Esempio n. 3
0
func ShowCursor(toggle int) int {
	return int(C.SDL_ShowCursor(C.int(toggle)))
}
Esempio n. 4
0
// Toggle whether or not the cursor is shown on the screen.
func ShowCursor(toggle int) int {
	state := int(C.SDL_ShowCursor((C.int)(toggle)))
	return state
}
Esempio n. 5
0
func ShowCursor(toggle int) int {
	_toggle := (C.int)(toggle)
	return (int)(C.SDL_ShowCursor(_toggle))
}
Esempio n. 6
0
func ShowCursor(t int) bool {
	return C.SDL_ShowCursor(C.int(t)) != 0
}