예제 #1
0
파일: sdl.go 프로젝트: klkblake/Go-SDL
// Set input grab mode
func WM_GrabInput(mode int) int {
	GlobalMutex.Lock()
	status := int(C.SDL_WM_GrabInput(C.SDL_GrabMode(mode)))
	GlobalMutex.Unlock()
	return status
}
예제 #2
0
파일: video.go 프로젝트: beoran/fungo
// Grabbing means that the mouse is confined to the application window,
// and nearly all keyboard input is passed directly to the application,
// and not interpreted by a window manager, if any.
func WM_GrabInput(mode SDL_GrabMode) SDL_GrabMode {
	return SDL_GrabMode(C.SDL_WM_GrabInput(C.SDL_GrabMode(mode)))
}