Tao.Sdl SDK Documentation |
|
Sdl.SDL_WM_GrabInput Method
Grabs mouse and keyboard input.
[Visual Basic]
Public Shared Function SDL_WM_GrabInput( _
ByVal
mode As
Integer _
) As
Integer
[C#]
public static
int SDL_WM_GrabInput(
int mode);
Parameters
-
mode
- SDL_GrabMode
Return Value
The current/new SDL_GrabMode.
Remarks
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.
When mode is SDL_GRAB_QUERY the grab mode is not changed, but the current grab mode is returned.
Binds to C-function call in SDL_video.h:
SDL_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode)
See Also
Sdl Class | Tao.Sdl Namespace