1SDL_WM_GrabInput(3)            SDL API Reference           SDL_WM_GrabInput(3)
2
3
4

NAME

6       SDL_WM_GrabInput - Grabs mouse and keyboard input.
7

SYNOPSIS

9       #include "SDL.h"
10
11       SDL_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode);
12

DESCRIPTION

14       Grabbing  means  that  the mouse is confined to the application window,
15       and nearly all keyboard input is passed directly  to  the  application,
16       and not interpreted by a window manager, if any.
17
18       When  mode is SDL_GRAB_QUERY the grab mode is not changed, but the cur‐
19       rent grab mode is returned.
20
21       typedef enum {
22         SDL_GRAB_QUERY,
23         SDL_GRAB_OFF,
24         SDL_GRAB_ON
25       } SDL_GrabMode;
26

RETURN VALUE

28       The current/new SDL_GrabMode.
29
30
31
32SDL                         Tue 11 Sep 2001, 23:01         SDL_WM_GrabInput(3)
Impressum