File tree Expand file tree Collapse file tree 2 files changed +296
-3
lines changed Expand file tree Collapse file tree 2 files changed +296
-3
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ interface
9696{ $I SDL_keyboard.inc} // 3.1.6-prev (unfinished)
9797{ $I SDL_joystick.inc} // 3.1.6-prev (unfinished)
9898{ $I SDL_pen.inc} // 3.1.6-prev
99- { $I SDL_keycode.inc} // 3.1.6-prev (unfinished)
10099{ $I SDL_scancode.inc} // 3.1.6-prev
100+ { $I SDL_keycode.inc} // 3.1.6-prev
101101{ $I SDL_touch.inc} // 3.1.6-prev (unfinished)
102102{ $I SDL_camera.inc} // 3.1.6-prev (unfinished)
103103{ $I SDL_events.inc} // 3.1.6-prev
@@ -226,6 +226,12 @@ function SDL_NS_TO_US(NS: Integer): Integer;
226226 SDL_NS_TO_US:=NS div SDL_NS_PER_US;
227227end ;
228228
229+ { Macros from SDL_keycode.h }
230+ function SDL_SCANCODE_TO_KEYCODE (X: TSDL_Scancode): TSDL_Keycode;
231+ begin
232+ Result:=X or SDLK_SCANCODE_MASK;
233+ end ;
234+
229235{ Macros from SDL_video.h }
230236function SDL_WINDOWPOS_UNDEFINED_DISPLAY (X: Integer): Integer;
231237begin
You can’t perform that action at this time.
0 commit comments