We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829206d commit 8752fefCopy full SHA for 8752fef
units/sdlkeycode.inc
@@ -17,6 +17,8 @@ type
17
18
const
19
SDLK_SCANCODE_MASK = 1 shl 30;
20
+ //#define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
21
+ //SDL2-for-Pascal: Not translated, see comment about this macro below.
22
23
SDLK_UNKNOWN = TSDL_KeyCode(0);
24
@@ -93,6 +95,12 @@ const
93
95
SDLK_y = TSDL_KeyCode('y');
94
96
SDLK_z = TSDL_KeyCode('z');
97
98
+ {SDL2-for-Pascal: In C the following scancodes are or'd by a macro:
99
+ SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK)
100
+
101
+ We convert the scancodes directly by:
102
+ TSDL_KeyCode(X or SDLK_SCANCODE_MASK); }
103
104
SDLK_CAPSLOCK = TSDL_KeyCode(SDL_SCANCODE_CAPSLOCK or SDLK_SCANCODE_MASK);
105
106
SDLK_F1 = TSDL_KeyCode(SDL_SCANCODE_F1 or SDLK_SCANCODE_MASK);
0 commit comments