GPC Developer Guides
Constants

Keyboard

This is a list of all keyboard identifiers used with get_keyboard

Name

Description

Value

KEY_A

This is the letter A on the keyboard

4

KEY_B

This is the letter B on the keyboard

5

KEY_C

This is the letter C on the keyboard

6

KEY_D

This is the letter D on the keyboard

7

KEY_E

This is the letter E on the keyboard

8

KEY_F

This is the letter F on the keyboard

9

KEY_G

This is the letter G on the keyboard

10

KEY_H

This is the letter H on the keyboard

11

KEY_I

This is the letter I on the keyboard

12

KEY_J

This is the letter J on the keyboard

13

KEY_K

This is the letter K on the keyboard

14

KEY_L

This is the letter L on the keyboard

15

KEY_M

This is the letter M on the keyboard

16

KEY_N

This is the letter N on the keyboard

17

KEY_O

This is the letter O on the keyboard

18

KEY_P

This is the letter P on the keyboard

19

KEY_Q

This is the letter Q on the keyboard

20

KEY_R

This is the letter R on the keyboard

21

KEY_S

This is the letter S on the keyboard

22

KEY_T

This is the letter T on the keyboard

23

KEY_U

This is the letter U on the keyboard

24

KEY_V

This is the letter V on the keyboard

25

KEY_W

This is the letter W on the keyboard

26

KEY_X

This is the letter X on the keyboard

27

KEY_Y

This is the letter Y on the keyboard

28

KEY_Z

This is the letter Z on the keyboard

29

KEY_1

This is the number 1 on the keyboard

30

KEY_2

This is the number 2 on the keyboard

31

KEY_3

This is the number 3 on the keyboard

32

KEY_4

This is the number 4 on the keyboard

33

KEY_5

This is the number 5 on the keyboard

34

KEY_6

This is the number 6 on the keyboard

35

KEY_7

This is the number 7 on the keyboard

36

KEY_8

This is the number 8 on the keyboard

37

KEY_9

This is the number 9 on the keyboard

38

KEY_0

This is the number 0 on the keyboard

39

KEY_ENTER

This is ENTER on the keyboard

40

KEY_ESC

This is ESC on the keyboard

41

KEY_BACKSPACE

This is BACKSPACE on the keyboard

42

KEY_TAB

This is TAB on the keyboard

43

KEY_SPACE

This is SPACE on the keyboard

44

KEY_MINUS

This is MINUS on the keyboard

45

KEY_EQUAL

This is EQUAL on the keyboard

46

KEY_LEFTBRACE

This is LEFTBRACE on the keyboard

47

KEY_RIGHTBRACE

This is RIGHTBRACE on the keyboard

48

KEY_BACKSLASH

This is BACKSLASH on the keyboard

49

KEY_HASHTILDE

This is HASHTILDE on the keyboard

50

KEY_SEMICOLON

This is SEMICOLON on the keyboard

51

KEY_APOSTROPHE

This is APOSTROPHE on the keyboard

52

KEY_GRAVE

This is GRAVE on the keyboard

53

KEY_COMMA

This is COMMA on the keyboard

54

KEY_DOT

This is DOT on the keyboard

55

KEY_SLASH

This is SLASH on the keyboard

56

KEY_CAPSLOCK

This is CAPSLOCK on the keyboard

57

KEY_F1

This is F1 on the keyboard

58

KEY_F2

This is F2 on the keyboard

59

KEY_F3

This is F3 on the keyboard

60

KEY_F4

This is F4 on the keyboard

61

KEY_F5

This is F5 on the keyboard

62

KEY_F6

This is F6 on the keyboard

63

KEY_F7

This is F7 on the keyboard

64

KEY_F8

This is F8 on the keyboard

65

KEY_F9

This is F9 on the keyboard

66

KEY_F10

This is F10 on the keyboard

67

KEY_F11

This is F11 on the keyboard

68

KEY_F12

This is F12 on the keyboard

69

KEY_SYSRQ

This is SYSRQ on the keyboard

70

KEY_SCROLLLOCK

This is SCROLLLOCK on the keyboard

71

KEY_PAUSE

This is PAUSE on the keyboard

72

KEY_INSERT

This is INSERT on the keyboard

73

KEY_HOME

This is HOME on the keyboard

74

KEY_PAGEUP

This is PAGEUP on the keyboard

75

KEY_DELETE

This is DELETE on the keyboard

76

KEY_END

This is END on the keyboard

77

KEY_PAGEDOWN

This is PAGEDOWN on the keyboard

78

KEY_RIGHT

This is RIGHT on the keyboard

79

KEY_LEFT

This is LEFT on the keyboard

80

KEY_DOWN

This is DOWN on the keyboard

81

KEY_UP

This is UP on the keyboard

82

KEY_NUMLOCK

This is NUMLOCK on the keyboard

83

KEY_KPSLASH

This is KPSLASH on the keyboard

84

KEY_KPASTERISK

This is KPASTERISK on the keyboard

85

KEY_KPMINUS

This is KPMINUS on the keyboard

86

KEY_KPPLUS

This is KPPLUS on the keyboard

87

KEY_KPENTER

This is KPENTER on the keyboard

88

KEY_KP1

This is KP1 on the keyboard

89

KEY_KP2

This is KP2 on the keyboard

90

KEY_KP3

This is KP3 on the keyboard

91

KEY_KP4

This is KP4 on the keyboard

92

KEY_KP5

This is KP5 on the keyboard

93

KEY_KP6

This is KP6 on the keyboard

94

KEY_KP7

This is KP7 on the keyboard

95

KEY_KP8

This is KP8 on the keyboard

96

KEY_KP9

This is KP9 on the keyboard

97

KEY_KP0

This is KP0 on the keyboard

98

KEY_KPDOT

This is KPDOT on the keyboard

99

KEY_102ND

This is 102ND on the keyboard

100

KEY_COMPOSE

This is COMPOSE on the keyboard

101

KEY_POWER

This is POWER on the keyboard

102

KEY_KPEQUAL

This is KPEQUAL on the keyboard

103

KEY_F13

This is F13 on the keyboard

104

KEY_F14

This is F14 on the keyboard

105

KEY_F15

This is F15 on the keyboard

106

KEY_F16

This is F16 on the keyboard

107

KEY_F17

This is F17 on the keyboard

108

KEY_F18

This is F18 on the keyboard

109

KEY_F19

This is F19 on the keyboard

110

KEY_F20

This is F20 on the keyboard

111

KEY_F21

This is F21 on the keyboard

112

KEY_F22

This is F22 on the keyboard

113

KEY_F23

This is F23 on the keyboard

114

KEY_F24

This is F24 on the keyboard

115

KEY_OPEN

This is OPEN on the keyboard

116

KEY_HELP

This is HELP on the keyboard

117

KEY_PROPS

This is PROPS on the keyboard

118

KEY_FRONT

This is FRONT on the keyboard

119

KEY_STOP

This is STOP on the keyboard

120

KEY_AGAIN

This is AGAIN on the keyboard

121

KEY_UNDO

This is UNDO on the keyboard

122

KEY_CUT

This is CUT on the keyboard

123

KEY_COPY

This is COPY on the keyboard

124

KEY_PASTE

This is PASTE on the keyboard

125

KEY_FIND

This is FIND on the keyboard

126

KEY_MUTE

This is MUTE on the keyboard

127

KEY_VOLUMEUP

This is VOLUMEUP on the keyboard

128

KEY_VOLUMEDOWN

This is VOLUMEDOWN on the keyboard

129

KEY_KPCOMMA

This is KPCOMMA on the keyboard

133

KEY_RO

This is RO on the keyboard

135

KEY_KATAKANAHIRAGANA

This is KATAKANAHIRAGANA on the keyboard

136

KEY_YEN

This is YEN on the keyboard

137

KEY_HENKAN

This is HENKAN on the keyboard

138

KEY_MUHENKAN

This is MUHENKAN on the keyboard

139

KEY_KPJPCOMMA

This is KPIPCOMMA on the keyboard

140

KEY_HANGEUL

This is HANGEUL on the keyboard

144

KEY_HANJA

This is HANIA on the keyboard

145

KEY_KATAKANA

This is KATAKANA on the keyboard

146

KEY_HIRAGANA

This is HIRAGANA on the keyboard

147

KEY_ZENKAKUHANKAKU

This is ZENKAKUHANKAKU on the keyboard

148

KEY_KPLEFTPAREN

This is KPLEFTPAREN on the keyboard

182

KEY_KPRIGHTPAREN

This is KPRIGHTPAREN on the keyboard

183

KEY_LEFTCTRL

This is LEFTCTRL on the keyboard

224

KEY_LEFTSHIFT

This is LEFTSHIFT on the keyboard

225

KEY_LEFTALT

This is LEFTALT on the keyboard

226

KEY_LEFTMETA

This is LEFT META on the keyboard

227

KEY_RIGHTCTRL

This is RIGHTCTRL on the keyboard

228

KEY_RIGHTSHIFT

This is RIGHTSHIFT on the keyboard

229

KEY_RIGHTALT

This is RIGHTALT on the keyboard

230

KEY_RIGHTMETA

This is RIGHTMETA on the keyboard

231

KEY_MEDIA_PLAYPAUSE

This is PLAYPAUSE on the keyboard

232

KEY_MEDIA_STOPCD

This is STOPCD on the keyboard

233

KEY_MEDIA_PREVIOUSSONG

This is PREVIOUSSONG on the keyboard

234

KEY_MEDIA_NEXTSONG

This is NEXTSONG on the keyboard

235

KEY_MEDIA_EJECTCD

This is EJECTCD on the keyboard

236

KEY_MEDIA_VOLUMEUP

This is VOLUMEUP on the keyboard

237

KEY_MEDIA_VOLUMEDOWN

This is VOLUMEDOWN on the keyboard

238

KEY_MEDIA_MUTE

This is MUTE on the keyboard

239

KEY_MEDIA_WWW

This is WWW on the keyboard

240

KEY_MEDIA_BACK

This is BACK on the keyboard

241

KEY_MEDIA_FORWARD

This is FORWARD on the keyboard

242

KEY_MEDIA_STOP

This is STOP on the keyboard

243

KEY_MEDIA_FIND

This is FIND on the keyboard

244

KEY_MEDIA_SCROLLUP

This is SCROLLUP on the keyboard

245

KEY_MEDIA_SCROLLDOWN

This is SCROLLDOWN on the keyboard

246

KEY_MEDIA_EDIT

This is EDIT on the keyboard

247

KEY_MEDIA_SLEEP

This is SLEEP on the keyboard

248

KEY_MEDIA_COFFEE

This is COFFEE on the keyboard

249

KEY_MEDIA_REFRESH

This is REFRESH on the keyboard

250

KEY_MEDIA_CALC

This is CALC on the keyboard

251

Modifiers

This is a list of all keyboard identifiers used with get_modifiers

Name

Description

Value

MOD_LCTRL

This is LCTRL on the keyboard

1

MOD_LSHIFT

This is LSHIFT on the keyboard

2

MOD_LALT

This is LALT on the keyboard

4

MOD_LGUI

This is LGUI on the keyboard

8

MOD_RCTRL

This is RCTRL on the keyboard

16

MOD_RSHIFT

This is RSHIFT on the keyboard

32

MOD_RALT

This is RALT on the keyboard

64

MOD_RGUI

This is RGUI on the keyboard

128