Debian Codegraph @

xbmc/input/keyboard/KeyboardSymbols.h

raw
1 /*
2 * Copyright (C) 2024 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include <string>
12
13 namespace KODI
14 {
15 namespace KEYBOARD
16 {
17
18 /*!
19 * \brief Keyboard symbols are hardware-independent virtual key representations. They
20 * are used to help facilitate keyboard mapping.
21 *
22 * Symbol names are defined by the Controller Topology Project. See:
23 *
24 * https://github.com/kodi-game/controller-topology-project/blob/master/Readme-Keyboard.md
25 *
26 */
27 using SymbolName = std::string;
28
29 constexpr auto KEY_SYMBOL_BACKSPACE = "backspace";
30 constexpr auto KEY_SYMBOL_TAB = "tab";
31 constexpr auto KEY_SYMBOL_CLEAR = "clear";
32 constexpr auto KEY_SYMBOL_ENTER = "enter";
33 constexpr auto KEY_SYMBOL_PAUSE = "pause";
34 constexpr auto KEY_SYMBOL_ESCAPE = "escape";
35 constexpr auto KEY_SYMBOL_SPACE = "space";
36 constexpr auto KEY_SYMBOL_EXCLAIM = "exclaim";
37 constexpr auto KEY_SYMBOL_DOUBLEQUOTE = "doublequote";
38 constexpr auto KEY_SYMBOL_HASH = "hash";
39 constexpr auto KEY_SYMBOL_DOLLAR = "dollar";
40 constexpr auto KEY_SYMBOL_AMPERSAND = "ampersand";
41 constexpr auto KEY_SYMBOL_QUOTE = "quote";
42 constexpr auto KEY_SYMBOL_LEFTPAREN = "leftparen";
43 constexpr auto KEY_SYMBOL_RIGHTPAREN = "rightparen";
44 constexpr auto KEY_SYMBOL_ASTERISK = "asterisk";
45 constexpr auto KEY_SYMBOL_PLUS = "plus";
46 constexpr auto KEY_SYMBOL_COMMA = "comma";
47 constexpr auto KEY_SYMBOL_MINUS = "minus";
48 constexpr auto KEY_SYMBOL_PERIOD = "period";
49 constexpr auto KEY_SYMBOL_SLASH = "slash";
50 constexpr auto KEY_SYMBOL_0 = "0";
51 constexpr auto KEY_SYMBOL_1 = "1";
52 constexpr auto KEY_SYMBOL_2 = "2";
53 constexpr auto KEY_SYMBOL_3 = "3";
54 constexpr auto KEY_SYMBOL_4 = "4";
55 constexpr auto KEY_SYMBOL_5 = "5";
56 constexpr auto KEY_SYMBOL_6 = "6";
57 constexpr auto KEY_SYMBOL_7 = "7";
58 constexpr auto KEY_SYMBOL_8 = "8";
59 constexpr auto KEY_SYMBOL_9 = "9";
60 constexpr auto KEY_SYMBOL_COLON = "colon";
61 constexpr auto KEY_SYMBOL_SEMICOLON = "semicolon";
62 constexpr auto KEY_SYMBOL_LESS = "less";
63 constexpr auto KEY_SYMBOL_EQUALS = "equals";
64 constexpr auto KEY_SYMBOL_GREATER = "greater";
65 constexpr auto KEY_SYMBOL_QUESTION = "question";
66 constexpr auto KEY_SYMBOL_AT = "at";
67 constexpr auto KEY_SYMBOL_LEFTBRACKET = "leftbracket";
68 constexpr auto KEY_SYMBOL_BACKSLASH = "backslash";
69 constexpr auto KEY_SYMBOL_RIGHTBRACKET = "rightbracket";
70 constexpr auto KEY_SYMBOL_CARET = "caret";
71 constexpr auto KEY_SYMBOL_UNDERSCORE = "underscore";
72 constexpr auto KEY_SYMBOL_GRAVE = "grave";
73 constexpr auto KEY_SYMBOL_A = "a";
74 constexpr auto KEY_SYMBOL_B = "b";
75 constexpr auto KEY_SYMBOL_C = "c";
76 constexpr auto KEY_SYMBOL_D = "d";
77 constexpr auto KEY_SYMBOL_E = "e";
78 constexpr auto KEY_SYMBOL_F = "f";
79 constexpr auto KEY_SYMBOL_G = "g";
80 constexpr auto KEY_SYMBOL_H = "h";
81 constexpr auto KEY_SYMBOL_I = "i";
82 constexpr auto KEY_SYMBOL_J = "j";
83 constexpr auto KEY_SYMBOL_K = "k";
84 constexpr auto KEY_SYMBOL_L = "l";
85 constexpr auto KEY_SYMBOL_M = "m";
86 constexpr auto KEY_SYMBOL_N = "n";
87 constexpr auto KEY_SYMBOL_O = "o";
88 constexpr auto KEY_SYMBOL_P = "p";
89 constexpr auto KEY_SYMBOL_Q = "q";
90 constexpr auto KEY_SYMBOL_R = "r";
91 constexpr auto KEY_SYMBOL_S = "s";
92 constexpr auto KEY_SYMBOL_T = "t";
93 constexpr auto KEY_SYMBOL_U = "u";
94 constexpr auto KEY_SYMBOL_V = "v";
95 constexpr auto KEY_SYMBOL_W = "w";
96 constexpr auto KEY_SYMBOL_X = "x";
97 constexpr auto KEY_SYMBOL_Y = "y";
98 constexpr auto KEY_SYMBOL_Z = "z";
99 constexpr auto KEY_SYMBOL_LEFTBRACE = "leftbrace";
100 constexpr auto KEY_SYMBOL_BAR = "bar";
101 constexpr auto KEY_SYMBOL_RIGHTBRACE = "rightbrace";
102 constexpr auto KEY_SYMBOL_TILDE = "tilde";
103 constexpr auto KEY_SYMBOL_DELETE = "delete";
104 constexpr auto KEY_SYMBOL_KP0 = "kp0";
105 constexpr auto KEY_SYMBOL_KP1 = "kp1";
106 constexpr auto KEY_SYMBOL_KP2 = "kp2";
107 constexpr auto KEY_SYMBOL_KP3 = "kp3";
108 constexpr auto KEY_SYMBOL_KP4 = "kp4";
109 constexpr auto KEY_SYMBOL_KP5 = "kp5";
110 constexpr auto KEY_SYMBOL_KP6 = "kp6";
111 constexpr auto KEY_SYMBOL_KP7 = "kp7";
112 constexpr auto KEY_SYMBOL_KP8 = "kp8";
113 constexpr auto KEY_SYMBOL_KP9 = "kp9";
114 constexpr auto KEY_SYMBOL_KPPERIOD = "kpperiod";
115 constexpr auto KEY_SYMBOL_KPDIVIDE = "kpdivide";
116 constexpr auto KEY_SYMBOL_KPMULTIPLY = "kpmultiply";
117 constexpr auto KEY_SYMBOL_KPMINUS = "kpminus";
118 constexpr auto KEY_SYMBOL_KPPLUS = "kpplus";
119 constexpr auto KEY_SYMBOL_KPENTER = "kpenter";
120 constexpr auto KEY_SYMBOL_KPEQUALS = "kpequals";
121 constexpr auto KEY_SYMBOL_UP = "up";
122 constexpr auto KEY_SYMBOL_DOWN = "down";
123 constexpr auto KEY_SYMBOL_RIGHT = "right";
124 constexpr auto KEY_SYMBOL_LEFT = "left";
125 constexpr auto KEY_SYMBOL_INSERT = "insert";
126 constexpr auto KEY_SYMBOL_HOME = "home";
127 constexpr auto KEY_SYMBOL_END = "end";
128 constexpr auto KEY_SYMBOL_PAGEUP = "pageup";
129 constexpr auto KEY_SYMBOL_PAGEDOWN = "pagedown";
130 constexpr auto KEY_SYMBOL_F1 = "f1";
131 constexpr auto KEY_SYMBOL_F2 = "f2";
132 constexpr auto KEY_SYMBOL_F3 = "f3";
133 constexpr auto KEY_SYMBOL_F4 = "f4";
134 constexpr auto KEY_SYMBOL_F5 = "f5";
135 constexpr auto KEY_SYMBOL_F6 = "f6";
136 constexpr auto KEY_SYMBOL_F7 = "f7";
137 constexpr auto KEY_SYMBOL_F8 = "f8";
138 constexpr auto KEY_SYMBOL_F9 = "f9";
139 constexpr auto KEY_SYMBOL_F10 = "f10";
140 constexpr auto KEY_SYMBOL_F11 = "f11";
141 constexpr auto KEY_SYMBOL_F12 = "f12";
142 constexpr auto KEY_SYMBOL_F13 = "f13";
143 constexpr auto KEY_SYMBOL_F14 = "f14";
144 constexpr auto KEY_SYMBOL_F15 = "f15";
145 constexpr auto KEY_SYMBOL_NUMLOCK = "numlock";
146 constexpr auto KEY_SYMBOL_CAPSLOCK = "capslock";
147 constexpr auto KEY_SYMBOL_SCROLLLOCK = "scrolllock";
148 constexpr auto KEY_SYMBOL_LEFTSHIFT = "leftshift";
149 constexpr auto KEY_SYMBOL_RIGHTSHIFT = "rightshift";
150 constexpr auto KEY_SYMBOL_LEFTCTRL = "leftctrl";
151 constexpr auto KEY_SYMBOL_RIGHTCTRL = "rightctrl";
152 constexpr auto KEY_SYMBOL_LEFTALT = "leftalt";
153 constexpr auto KEY_SYMBOL_RIGHTALT = "rightalt";
154 constexpr auto KEY_SYMBOL_LEFTMETA = "leftmeta";
155 constexpr auto KEY_SYMBOL_RIGHTMETA = "rightmeta";
156 constexpr auto KEY_SYMBOL_LEFTSUPER = "leftsuper";
157 constexpr auto KEY_SYMBOL_RIGHTSUPER = "rightsuper";
158 constexpr auto KEY_SYMBOL_MODE = "mode";
159 constexpr auto KEY_SYMBOL_COMPOSE = "compose";
160 constexpr auto KEY_SYMBOL_HELP = "help";
161 constexpr auto KEY_SYMBOL_PRINTSCREEN = "printscreen";
162 constexpr auto KEY_SYMBOL_SYSREQ = "sysreq";
163 constexpr auto KEY_SYMBOL_BREAK = "break";
164 constexpr auto KEY_SYMBOL_MENU = "menu";
165 constexpr auto KEY_SYMBOL_POWER = "power";
166 constexpr auto KEY_SYMBOL_EURO = "euro";
167 constexpr auto KEY_SYMBOL_UNDO = "undo";
168 constexpr auto KEY_SYMBOL_OEM102 = "oem102";
169
170 } // namespace KEYBOARD
171 } // namespace KODI