示例#1
0
func ShowCursor(show bool) {
	if show {
		C.SDL_ShowCursor(C.SDL_TRUE)
	} else {
		C.SDL_ShowCursor(C.SDL_FALSE)
	}
}
示例#2
0
文件: sdl.go 项目: kearsley/Go-SDL
// 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
}
示例#3
0
文件: sdl.go 项目: gnanderson/Go-SDL
func ShowCursor(toggle int) int {
	return int(C.SDL_ShowCursor(C.int(toggle)))
}
示例#4
0
文件: input.go 项目: krig/Go-SDL2
// 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
}
示例#5
0
func ShowCursor(toggle int) int {
	_toggle := (C.int)(toggle)
	return (int)(C.SDL_ShowCursor(_toggle))
}
示例#6
0
文件: mouse.go 项目: willemvds/sdl
func ShowCursor(t int) bool {
	return C.SDL_ShowCursor(C.int(t)) != 0
}