Penguin
Blame: SDL_GetKeyState(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_GetKeyState(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!GetKeyState
2 !!!SDL_!GetKeyState
1 perry 3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 EXAMPLE
7 SEE ALSO
8 ----
9 !!NAME
10
11
2 perry 12 SDL_!GetKeyState- Get a snapshot of the current keyboard state
1 perry 13 !!SYNOPSIS
14
15
16 __#include __
17
18
2 perry 19 __Uint8 *SDL_!GetKeyState__(__int
1 perry 20 *numkeys__);
21 !!DESCRIPTION
22
23
24 Gets a snapshot of the current keyboard state. The current
25 state is return as a pointer to an array, the size of this
26 array is stored in __numkeys__. The array is indexed by
27 the __SDLK_*__ symbols. A value of 1 means the key is
28 pressed and a value of 0 means its not.
29
30
31 __Note:__
32
33
2 perry 34 Use __SDL_!PumpEvents__ to update the state
1 perry 35 array.
36 !!EXAMPLE
37
38
2 perry 39 Uint8 *keystate = SDL_!GetKeyState(NULL);
1 perry 40 if ( keystate[[SDLK_RETURN] ) printf(
41 !!SEE ALSO
42
43
2 perry 44 __SDL Key Symbols__, __SDL_!PumpEvents__
1 perry 45 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.