summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/video/riscos/scancodes_riscos.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/SDL-3.2.8/src/video/riscos/scancodes_riscos.h')
-rw-r--r--contrib/SDL-3.2.8/src/video/riscos/scancodes_riscos.h157
1 files changed, 157 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/video/riscos/scancodes_riscos.h b/contrib/SDL-3.2.8/src/video/riscos/scancodes_riscos.h
new file mode 100644
index 0000000..2b99135
--- /dev/null
+++ b/contrib/SDL-3.2.8/src/video/riscos/scancodes_riscos.h
@@ -0,0 +1,157 @@
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22/* RISC OS key code to SDL_Keycode mapping table
23 Sources:
24 - https://www.riscosopen.org/wiki/documentation/show/Keyboard Scan Codes
25*/
26/* *INDENT-OFF* */ // clang-format off
27static SDL_Scancode const riscos_scancode_table[] = {
28 /* 0 */ SDL_SCANCODE_UNKNOWN, // Shift
29 /* 1 */ SDL_SCANCODE_UNKNOWN, // Ctrl
30 /* 2 */ SDL_SCANCODE_UNKNOWN, // Alt
31 /* 3 */ SDL_SCANCODE_LSHIFT,
32 /* 4 */ SDL_SCANCODE_LCTRL,
33 /* 5 */ SDL_SCANCODE_LALT,
34 /* 6 */ SDL_SCANCODE_RSHIFT,
35 /* 7 */ SDL_SCANCODE_RCTRL,
36 /* 8 */ SDL_SCANCODE_RALT,
37 /* 9 */ SDL_SCANCODE_UNKNOWN, // Left mouse
38 /* 10 */ SDL_SCANCODE_UNKNOWN, // Center mouse
39 /* 11 */ SDL_SCANCODE_UNKNOWN, // Right mouse
40 /* 12 */ SDL_SCANCODE_UNKNOWN,
41 /* 13 */ SDL_SCANCODE_UNKNOWN,
42 /* 14 */ SDL_SCANCODE_UNKNOWN,
43 /* 15 */ SDL_SCANCODE_UNKNOWN,
44 /* 16 */ SDL_SCANCODE_Q,
45 /* 17 */ SDL_SCANCODE_3,
46 /* 18 */ SDL_SCANCODE_4,
47 /* 19 */ SDL_SCANCODE_5,
48 /* 20 */ SDL_SCANCODE_F4,
49 /* 21 */ SDL_SCANCODE_8,
50 /* 22 */ SDL_SCANCODE_F7,
51 /* 23 */ SDL_SCANCODE_MINUS,
52 /* 24 */ SDL_SCANCODE_6, // Duplicate of 52
53 /* 25 */ SDL_SCANCODE_LEFT,
54 /* 26 */ SDL_SCANCODE_KP_6,
55 /* 27 */ SDL_SCANCODE_KP_7,
56 /* 28 */ SDL_SCANCODE_F11,
57 /* 29 */ SDL_SCANCODE_F12,
58 /* 30 */ SDL_SCANCODE_F10,
59 /* 31 */ SDL_SCANCODE_SCROLLLOCK,
60 /* 32 */ SDL_SCANCODE_PRINTSCREEN,
61 /* 33 */ SDL_SCANCODE_W,
62 /* 34 */ SDL_SCANCODE_E,
63 /* 35 */ SDL_SCANCODE_T,
64 /* 36 */ SDL_SCANCODE_7,
65 /* 37 */ SDL_SCANCODE_I,
66 /* 38 */ SDL_SCANCODE_9,
67 /* 39 */ SDL_SCANCODE_0,
68 /* 40 */ SDL_SCANCODE_MINUS, // Duplicate of 23
69 /* 41 */ SDL_SCANCODE_DOWN,
70 /* 42 */ SDL_SCANCODE_KP_8,
71 /* 43 */ SDL_SCANCODE_KP_9,
72 /* 44 */ SDL_SCANCODE_PAUSE,
73 /* 45 */ SDL_SCANCODE_GRAVE,
74 /* 46 */ SDL_SCANCODE_CURRENCYUNIT,
75 /* 47 */ SDL_SCANCODE_BACKSPACE,
76 /* 48 */ SDL_SCANCODE_1,
77 /* 49 */ SDL_SCANCODE_2,
78 /* 50 */ SDL_SCANCODE_D,
79 /* 51 */ SDL_SCANCODE_R,
80 /* 52 */ SDL_SCANCODE_6,
81 /* 53 */ SDL_SCANCODE_U,
82 /* 54 */ SDL_SCANCODE_O,
83 /* 55 */ SDL_SCANCODE_P,
84 /* 56 */ SDL_SCANCODE_LEFTBRACKET,
85 /* 57 */ SDL_SCANCODE_UP,
86 /* 58 */ SDL_SCANCODE_KP_PLUS,
87 /* 59 */ SDL_SCANCODE_KP_MINUS,
88 /* 60 */ SDL_SCANCODE_KP_ENTER,
89 /* 61 */ SDL_SCANCODE_INSERT,
90 /* 62 */ SDL_SCANCODE_HOME,
91 /* 63 */ SDL_SCANCODE_PAGEUP,
92 /* 64 */ SDL_SCANCODE_CAPSLOCK,
93 /* 65 */ SDL_SCANCODE_A,
94 /* 66 */ SDL_SCANCODE_X,
95 /* 67 */ SDL_SCANCODE_F,
96 /* 68 */ SDL_SCANCODE_Y,
97 /* 69 */ SDL_SCANCODE_J,
98 /* 70 */ SDL_SCANCODE_K,
99 /* 71 */ SDL_SCANCODE_2, // Duplicate of 49
100 /* 72 */ SDL_SCANCODE_SEMICOLON, // Duplicate of 87
101 /* 73 */ SDL_SCANCODE_RETURN,
102 /* 74 */ SDL_SCANCODE_KP_DIVIDE,
103 /* 75 */ SDL_SCANCODE_UNKNOWN,
104 /* 76 */ SDL_SCANCODE_KP_PERIOD,
105 /* 77 */ SDL_SCANCODE_NUMLOCKCLEAR,
106 /* 78 */ SDL_SCANCODE_PAGEDOWN,
107 /* 79 */ SDL_SCANCODE_APOSTROPHE,
108 /* 80 */ SDL_SCANCODE_UNKNOWN,
109 /* 81 */ SDL_SCANCODE_S,
110 /* 82 */ SDL_SCANCODE_C,
111 /* 83 */ SDL_SCANCODE_G,
112 /* 84 */ SDL_SCANCODE_H,
113 /* 85 */ SDL_SCANCODE_N,
114 /* 86 */ SDL_SCANCODE_L,
115 /* 87 */ SDL_SCANCODE_SEMICOLON,
116 /* 88 */ SDL_SCANCODE_RIGHTBRACKET,
117 /* 89 */ SDL_SCANCODE_DELETE,
118 /* 90 */ SDL_SCANCODE_KP_HASH,
119 /* 91 */ SDL_SCANCODE_KP_MULTIPLY,
120 /* 92 */ SDL_SCANCODE_UNKNOWN,
121 /* 93 */ SDL_SCANCODE_EQUALS,
122 /* 94 */ SDL_SCANCODE_NONUSBACKSLASH,
123 /* 95 */ SDL_SCANCODE_UNKNOWN,
124 /* 96 */ SDL_SCANCODE_TAB,
125 /* 97 */ SDL_SCANCODE_Z,
126 /* 98 */ SDL_SCANCODE_SPACE,
127 /* 99 */ SDL_SCANCODE_V,
128 /* 100 */ SDL_SCANCODE_B,
129 /* 101 */ SDL_SCANCODE_M,
130 /* 102 */ SDL_SCANCODE_COMMA,
131 /* 103 */ SDL_SCANCODE_PERIOD,
132 /* 104 */ SDL_SCANCODE_SLASH,
133 /* 105 */ SDL_SCANCODE_END,
134 /* 106 */ SDL_SCANCODE_KP_0,
135 /* 107 */ SDL_SCANCODE_KP_1,
136 /* 108 */ SDL_SCANCODE_KP_3,
137 /* 109 */ SDL_SCANCODE_UNKNOWN,
138 /* 110 */ SDL_SCANCODE_UNKNOWN,
139 /* 111 */ SDL_SCANCODE_UNKNOWN,
140 /* 112 */ SDL_SCANCODE_ESCAPE,
141 /* 113 */ SDL_SCANCODE_F1,
142 /* 114 */ SDL_SCANCODE_F2,
143 /* 115 */ SDL_SCANCODE_F3,
144 /* 116 */ SDL_SCANCODE_F5,
145 /* 117 */ SDL_SCANCODE_F6,
146 /* 118 */ SDL_SCANCODE_F8,
147 /* 119 */ SDL_SCANCODE_F9,
148 /* 120 */ SDL_SCANCODE_BACKSLASH,
149 /* 121 */ SDL_SCANCODE_RIGHT,
150 /* 122 */ SDL_SCANCODE_KP_4,
151 /* 123 */ SDL_SCANCODE_KP_5,
152 /* 124 */ SDL_SCANCODE_KP_2,
153 /* 125 */ SDL_SCANCODE_LGUI,
154 /* 126 */ SDL_SCANCODE_RGUI,
155 /* 127 */ SDL_SCANCODE_MENU
156};
157/* *INDENT-ON* */ // clang-format on