Penguin
Blame: SDL_GetModState(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_GetModState(3) version 2 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 perry 1 SDL_!GetModState
2 !!!SDL_!GetModState
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 SEE ALSO
8 ----
9 !!NAME
10
11
12 SDL_!GetModState- Get the state of modifier keys.
13 !!SYNOPSIS
14
15
16 __#include __
17
18
19 __SDLMod SDL_!GetModState__(__void__);
20 !!DESCRIPTION
21
22
23 Returns the current of the modifier keys (CTRL, ALT,
24 etc.).
25 !!RETURN VALUE
26
27
28 The return value can be an OR'd combination of the SDLMod
29 enum.
30
31
32 __SDLMod__
33
34
35 typedef enum {
36 KMOD_NONE = 0x0000,
37 KMOD_LSHIFT= 0x0001,
38 KMOD_RSHIFT= 0x0002,
39 KMOD_LCTRL = 0x0040,
40 KMOD_RCTRL = 0x0080,
41 KMOD_LALT = 0x0100,
42 KMOD_RALT = 0x0200,
43 KMOD_LMETA = 0x0400,
44 KMOD_RMETA = 0x0800,
45 KMOD_NUM = 0x1000,
46 KMOD_CAPS = 0x2000,
47 KMOD_MODE = 0x4000,
48 } SDLMod;
49
50
51 SDL also defines the following symbols for
52 convenience:
53
54
55 #define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
56 #define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
57 #define KMOD_ALT (KMOD_LALT|KMOD_RALT)
58 #define KMOD_META (KMOD_LMETA|KMOD_RMETA)
59 !!SEE ALSO
60
61
62 __SDL_!GetKeyState__
63 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.