forked from pygame/pygame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
key_doc.h
69 lines (53 loc) · 2.41 KB
/
key_doc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* Auto generated file: with makeref.py . Docs go in docs/reST/ref/ . */
#define DOC_PYGAMEKEY "pygame module to work with the keyboard"
#define DOC_PYGAMEKEYGETFOCUSED "get_focused() -> bool\ntrue if the display is receiving keyboard input from the system"
#define DOC_PYGAMEKEYGETPRESSED "get_pressed() -> bools\nget the state of all keyboard buttons"
#define DOC_PYGAMEKEYGETMODS "get_mods() -> int\ndetermine which modifier keys are being held"
#define DOC_PYGAMEKEYSETMODS "set_mods(int) -> None\ntemporarily set which modifier keys are pressed"
#define DOC_PYGAMEKEYSETREPEAT "set_repeat() -> None\nset_repeat(delay) -> None\nset_repeat(delay, interval) -> None\ncontrol how held keys are repeated"
#define DOC_PYGAMEKEYGETREPEAT "get_repeat() -> (delay, interval)\nsee how held keys are repeated"
#define DOC_PYGAMEKEYNAME "name(key) -> string\nget the name of a key identifier"
#define DOC_PYGAMEKEYKEYCODE "key_code(name=string) -> int\nget the key identifier from a key name"
#define DOC_PYGAMEKEYSTARTTEXTINPUT "start_text_input() -> None\nstart handling IME compositions"
#define DOC_PYGAMEKEYSTOPTEXTINPUT "stop_text_input() -> None\nstop handling IME compositions"
#define DOC_PYGAMEKEYSETTEXTINPUTRECT "set_text_input_rect(Rect) -> None\ncontrols the position of the candidate list"
/* Docs in a comment... slightly easier to read. */
/*
pygame.key
pygame module to work with the keyboard
pygame.key.get_focused
get_focused() -> bool
true if the display is receiving keyboard input from the system
pygame.key.get_pressed
get_pressed() -> bools
get the state of all keyboard buttons
pygame.key.get_mods
get_mods() -> int
determine which modifier keys are being held
pygame.key.set_mods
set_mods(int) -> None
temporarily set which modifier keys are pressed
pygame.key.set_repeat
set_repeat() -> None
set_repeat(delay) -> None
set_repeat(delay, interval) -> None
control how held keys are repeated
pygame.key.get_repeat
get_repeat() -> (delay, interval)
see how held keys are repeated
pygame.key.name
name(key) -> string
get the name of a key identifier
pygame.key.key_code
key_code(name=string) -> int
get the key identifier from a key name
pygame.key.start_text_input
start_text_input() -> None
start handling IME compositions
pygame.key.stop_text_input
stop_text_input() -> None
stop handling IME compositions
pygame.key.set_text_input_rect
set_text_input_rect(Rect) -> None
controls the position of the candidate list
*/