Пример #1
0
def get_focused():
    """ get_focused() -> bool
    true if the display is receiving keyboard input from the system
    """
    check_video()
    return (sdl.SDL_GetAppState() & sdl.SDL_APPINPUTFOCUS) != 0
Пример #2
0
def get_focused():
    """ get_focused() -> bool
    check if the display is receiving mouse input
    """
    check_video()
    return int(sdl.SDL_GetAppState() & sdl.SDL_APPMOUSEFOCUS != 0)
Пример #3
0
def get_active():
    """ get_active() -> bool
    Returns True when the display is active on the display
    """
    return (sdl.SDL_GetAppState() & sdl.SDL_APPACTIVE) != 0