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

NAME

6       SDL_SetModState - Set the current key modifier state
7

SYNOPSIS

9       #include "SDL.h"
10
11       void SDL_SetModState(SDLMod modstate);
12

DESCRIPTION

14       The  inverse  of  SDL_GetModState, SDL_SetModState allows you to impose
15       modifier key states on your application.
16
17       Simply pass your desired modifier states into modstate. This  value  my
18       be a logical OR'd combination of the following:
19
20       typedef enum {
21         KMOD_NONE  = 0x0000,
22         KMOD_LSHIFT= 0x0001,
23         KMOD_RSHIFT= 0x0002,
24         KMOD_LCTRL = 0x0040,
25         KMOD_RCTRL = 0x0080,
26         KMOD_LALT  = 0x0100,
27         KMOD_RALT  = 0x0200,
28         KMOD_LMETA = 0x0400,
29         KMOD_RMETA = 0x0800,
30         KMOD_NUM   = 0x1000,
31         KMOD_CAPS  = 0x2000,
32         KMOD_MODE  = 0x4000,
33       } SDLMod;
34

SEE ALSO

36       SDL_GetModState
37
38
39
40SDL                         Tue 11 Sep 2001, 23:00          SDL_SetModState(3)
Impressum