File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -911,6 +911,8 @@ Begin
911
911
{ $ENDIF}
912
912
SDL_IsTablet := TSDL_IsTablet_func(GetProcAddress(LibHandle, ' SDL_IsTablet' ));
913
913
If Not assigned(SDL_IsTablet) Then result := false;
914
+ SDL_PumpEvents := TSDL_PumpEvents_proc(GetProcAddress(LibHandle, ' SDL_PumpEvents' ));
915
+ If Not assigned(SDL_PumpEvents) Then result := false;
914
916
SDL_PollEvent := TSDL_PollEvent_func(GetProcAddress(LibHandle, ' SDL_PollEvent' ));
915
917
If Not assigned(SDL_PollEvent) Then result := false;
916
918
SDL_EventState := TSDL_EventState_func(GetProcAddress(LibHandle, ' SDL_EventState' ));
Original file line number Diff line number Diff line change 678
678
* This should only be run in the thread that sets the video mode.
679
679
*}
680
680
{ $ifdef SDL_RUNTIME_LOADING}
681
- // TODO: Portieren
681
+ Type
682
+ TSDL_PumpEvents_proc = Procedure (); cdecl;
683
+ var SDL_PumpEvents: TSDL_PumpEvents_proc = Nil ;
682
684
{ $else}
683
685
684
686
procedure SDL_PumpEvents cdecl; external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_PumpEvents' { $ENDIF} { $ENDIF} ;
@@ -741,16 +743,15 @@ type
741
743
* stored in that area.
742
744
*}
743
745
{ $endif}
744
- { $ifdef SDL_RUNTIME_LOADING}
745
- Type
746
- TSDL_PollEvent_func = function (event: PSDL_Event): cint32 cdecl;
747
- Var
748
- SDL_PollEvent : TSDL_PollEvent_func = Nil ;
749
- { $else}
750
-
751
- function SDL_PollEvent (event: PSDL_Event): cint32 cdecl; external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_PollEvent' { $ENDIF} { $ENDIF} ;
752
-
753
- { $endif}
746
+ { $ifdef SDL_RUNTIME_LOADING}
747
+ Type
748
+ TSDL_PollEvent_func = function (event: PSDL_Event): cint32 cdecl;
749
+ Var
750
+ SDL_PollEvent : TSDL_PollEvent_func = Nil ;
751
+ { $else}
752
+ function SDL_PollEvent (event: PSDL_Event): cint32 cdecl;
753
+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_PollEvent' { $ENDIF} { $ENDIF} ;
754
+ { $endif}
754
755
755
756
{ $ifdef SDL_RUNTIME_LOADING}
756
757
// TODO: Portieren
You can’t perform that action at this time.
0 commit comments