예제 #1
0
def get_grab():
    mode = sdl.SDL_WM_GrabInput(sdl.SDL_GRAB_QUERY)
    return mode == sdl.SDL_GRAB_ON
예제 #2
0
def set_grab(value):
    if value:
        sdl.SDL_WM_GrabInput(sdl.SDL_GRAB_ON)
    else:
        sdl.SDL_WM_GrabInput(sdl.SDL_GRAB_OFF)