RetroArch
netplay_keys.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2016-2017 - Gregor Richards
3  *
4  * RetroArch is free software: you can redistribute it and/or modify it under the terms
5  * of the GNU General Public License as published by the Free Software Found-
6  * ation, either version 3 of the License, or (at your option) any later version.
7  *
8  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  * PURPOSE. See the GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License along with RetroArch.
13  * If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 /* This is an X-include file which defines the mapping of keycodes used by
17  * libretro to keycodes used by RetroArch Netplay. The keycodes are different
18  * because the keycodes supported by libretro are in discontiguous blocks,
19  * which would create gaps in the input data, requiring more space and more
20  * network bandwidth to represent them.
21  *
22  * If you want to add a new keycode, make sure you add it to the END. The order
23  * that the keys appear in this file defines their indices in the netplay
24  * protocol, so adding a key in the middle will break backwards compatibility.
25  * If you want to clean up the order and thereby break backwards compatibility,
26  * make sure you bump the protocol version in netplay_private.h.
27  */
28 
29 K(BACKSPACE)
30 K(TAB)
31 KL(LINEFEED, 10)
32 K(CLEAR)
33 K(RETURN)
34 K(PAUSE)
35 K(ESCAPE)
36 K(SPACE)
37 K(EXCLAIM)
38 K(QUOTEDBL)
39 K(HASH)
40 K(DOLLAR)
41 K(AMPERSAND)
42 K(QUOTE)
43 K(LEFTPAREN)
44 K(RIGHTPAREN)
45 K(ASTERISK)
46 K(PLUS)
47 K(COMMA)
48 K(MINUS)
49 K(PERIOD)
50 K(SLASH)
51 K(0)
52 K(1)
53 K(2)
54 K(3)
55 K(4)
56 K(5)
57 K(6)
58 K(7)
59 K(8)
60 K(9)
61 K(COLON)
62 K(SEMICOLON)
63 K(LESS)
64 K(EQUALS)
65 K(GREATER)
66 K(QUESTION)
67 K(AT)
68 K(LEFTBRACKET)
69 K(BACKSLASH)
70 K(RIGHTBRACKET)
71 K(CARET)
72 K(UNDERSCORE)
73 K(BACKQUOTE)
74 K(a)
75 K(b)
76 K(c)
77 K(d)
78 K(e)
79 K(f)
80 K(g)
81 K(h)
82 K(i)
83 K(j)
84 K(k)
85 K(l)
86 K(m)
87 K(n)
88 K(o)
89 K(p)
90 K(q)
91 K(r)
92 K(s)
93 K(t)
94 K(u)
95 K(v)
96 K(w)
97 K(x)
98 K(y)
99 K(z)
100 K(DELETE)
101 
102 K(KP0)
103 K(KP1)
104 K(KP2)
105 K(KP3)
106 K(KP4)
107 K(KP5)
108 K(KP6)
109 K(KP7)
110 K(KP8)
111 K(KP9)
112 K(KP_PERIOD)
113 K(KP_DIVIDE)
114 K(KP_MULTIPLY)
115 K(KP_MINUS)
116 K(KP_PLUS)
117 K(KP_ENTER)
118 K(KP_EQUALS)
119 
120 K(UP)
121 K(DOWN)
122 K(RIGHT)
123 K(LEFT)
124 K(INSERT)
125 K(HOME)
126 K(END)
127 K(PAGEUP)
128 K(PAGEDOWN)
129 
130 K(F1)
131 K(F2)
132 K(F3)
133 K(F4)
134 K(F5)
135 K(F6)
136 K(F7)
137 K(F8)
138 K(F9)
139 K(F10)
140 K(F11)
141 K(F12)
142 K(F13)
143 K(F14)
144 K(F15)
145 
146 K(NUMLOCK)
147 K(CAPSLOCK)
148 K(SCROLLOCK)
149 K(RSHIFT)
150 K(LSHIFT)
151 K(RCTRL)
152 K(LCTRL)
153 K(RALT)
154 K(LALT)
155 K(RMETA)
156 K(LMETA)
157 K(LSUPER)
158 K(RSUPER)
159 K(MODE)
160 K(COMPOSE)
161 
162 K(HELP)
163 K(PRINT)
164 K(SYSREQ)
165 K(BREAK)
166 K(MENU)
167 K(POWER)
168 K(EURO)
169 K(UNDO)
Definition: glslang_tab.cpp:152
#define SPACE
Definition: kprintf.c:31
#define F2(x, y, z)
Definition: md5.c:41
GLdouble GLdouble GLdouble r
Definition: glext.h:6406
GLdouble GLdouble t
Definition: glext.h:6398
#define QUOTE(s)
Definition: ShaderLang.cpp:1572
GLfloat f
Definition: glext.h:8207
#define EURO
Definition: regextest.cpp:373
GLdouble s
Definition: glext.h:6390
GLdouble GLdouble z
Definition: glext.h:6514
#define F1(x, y, z)
Definition: md5.c:40
const GLubyte * c
Definition: glext.h:9812
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
Definition: glslang_tab.cpp:502
#define F3(x, y, z)
Definition: md5.c:42
Definition: glslang_tab.cpp:503
Definition: glslang_tab.cpp:145
Definition: glslang_tab.cpp:497
bool l
Definition: connect_wiiupro.c:37
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
Definition: glslang_tab.cpp:504
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
GLdouble GLdouble GLdouble GLdouble q
Definition: glext.h:6414
GLfloat GLfloat p
Definition: glext.h:9809
Definition: glslang_tab.cpp:488
Definition: glslang_tab.cpp:489
const GLdouble * v
Definition: glext.h:6391
GLboolean GLboolean g
Definition: glext.h:6844
GLint j
Definition: nx_glsym.h:307
#define PLUS
Definition: kprintf.c:30
#define LEFT
Definition: kprintf.c:32
#define F4(x, y, z)
Definition: md5.c:43
Definition: netplay_private.h:956
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6742
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
Definition: glslang_tab.cpp:491
GLdouble n
Definition: glext.h:8396
#define KL(k, l)
const GLfloat * m
Definition: glext.h:11755
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844
#define F5(x, y, z)