// 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 }
// 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))) }