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