func ShowCursor(show bool) {
	if show {
		C.SDL_ShowCursor(C.SDL_TRUE)
	} else {
		C.SDL_ShowCursor(C.SDL_FALSE)
	}
}
Exemple #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
}
Exemple #3
0
func ShowCursor(toggle int) int {
	return int(C.SDL_ShowCursor(C.int(toggle)))
}
Exemple #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
}
Exemple #5
0
func ShowCursor(toggle int) int {
	_toggle := (C.int)(toggle)
	return (int)(C.SDL_ShowCursor(_toggle))
}
Exemple #6
0
func ShowCursor(t int) bool {
	return C.SDL_ShowCursor(C.int(t)) != 0
}