Annotated edit history of
SDL_SetModState(3) version 2 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SDL_!SetModState |
|
|
2 |
!!!SDL_!SetModState |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
SEE ALSO |
|
|
7 |
---- |
|
|
8 |
!!NAME |
|
|
9 |
|
|
|
10 |
|
|
|
11 |
SDL_!SetModState- Set the current key modifier state |
|
|
12 |
!!SYNOPSIS |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
__#include __ |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__void SDL_!SetModState__(__SDLMod |
|
|
19 |
modstate__); |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
The inverse of __SDL_!GetModState__, |
|
|
24 |
__SDL_!SetModState__ allows you to impose modifier key |
|
|
25 |
states on your application. |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
Simply pass your desired modifier states into |
|
|
29 |
__modstate__. This value my be a logical OR'd combination |
|
|
30 |
of the following: |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
typedef enum { |
|
|
34 |
KMOD_NONE = 0x0000, |
|
|
35 |
KMOD_LSHIFT= 0x0001, |
|
|
36 |
KMOD_RSHIFT= 0x0002, |
|
|
37 |
KMOD_LCTRL = 0x0040, |
|
|
38 |
KMOD_RCTRL = 0x0080, |
|
|
39 |
KMOD_LALT = 0x0100, |
|
|
40 |
KMOD_RALT = 0x0200, |
|
|
41 |
KMOD_LMETA = 0x0400, |
|
|
42 |
KMOD_RMETA = 0x0800, |
|
|
43 |
KMOD_NUM = 0x1000, |
|
|
44 |
KMOD_CAPS = 0x2000, |
|
|
45 |
KMOD_MODE = 0x4000, |
|
|
46 |
} SDLMod; |
|
|
47 |
!!SEE ALSO |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
__SDL_!GetModState__ |
|
|
51 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.