|
22 | 22 | {$DEFINE SDL_VIDEO_DRIVER_VIVANTE} |
23 | 23 | {$ENDIF} |
24 | 24 |
|
| 25 | +{$IFDEF OS2} |
| 26 | + {$DEFINE SDL_VIDEO_DRIVER_OS2} |
| 27 | +{$ENDIF} |
| 28 | + |
| 29 | +{$IFDEF HAIKU} |
| 30 | + {$DEFINE SDL_VIDEO_DRIVER_HAIKU} |
| 31 | +{$ENDIF} |
| 32 | + |
25 | 33 |
|
26 | 34 | {** |
27 | 35 | * These are the various supported windowing subsystems |
|
34 | 42 | SDL_SYSWM_DIRECTFB, |
35 | 43 | SDL_SYSWM_COCOA, |
36 | 44 | SDL_SYSWM_UIKIT, |
37 | | - SDL_SYSWM_WAYLAND, // Since SDL 2.0.2 |
| 45 | + SDL_SYSWM_WAYLAND, // Since SDL 2.0.2 - REMOVED in SDL 2.0.10! |
38 | 46 | SDL_SYSWM_MIR, // Since SDL 2.0.2 |
39 | 47 | SDL_SYSWM_WINRT, // Since SDL 2.0.3 |
40 | 48 | SDL_SYSWM_ANDROID, // Since SDL 2.0.4 |
41 | | - SDL_SYSWM_VIVANTE // Since SDL 2.0.5 |
| 49 | + SDL_SYSWM_VIVANTE, // Since SDL 2.0.5 |
| 50 | + SDL_SYSWM_OS2, // Since SDL 2.0.6 |
| 51 | + SDL_SYSWM_HAIKU // Since SDL 2.0.12 |
42 | 52 | ); |
43 | 53 |
|
44 | 54 | /// sdl_syswm.h uses anonymous structs, declared right in SDL_SysWMmsg and SDL_SysWMinfo. |
45 | 55 | /// Since Pascal does not allow this, we workaround by introducing named types. |
46 | 56 | {$IFDEF SDL_VIDEO_DRIVER_WINDOWS} |
47 | 57 | __SYSWM_WINDOWS = record |
48 | 58 | hwnd: HWND; {**< The window for the message } |
49 | | - msg: uInt; {**< The type of message *} |
| 59 | + msg: uInt; {**< The type of message *} |
50 | 60 | wParam: WPARAM; {**< WORD message parameter *} |
51 | 61 | lParam: LPARAM; {**< WORD message parameter *} |
52 | 62 | end; |
@@ -139,6 +149,20 @@ Type |
139 | 149 | end; |
140 | 150 | {$ENDIF} |
141 | 151 |
|
| 152 | +{$IFDEF SDL_VIDEO_DRIVER_OS2} |
| 153 | + __SYSWM_OS2 = record |
| 154 | + fFrame: Boolean; {**< TRUE if hwnd is a frame window *} |
| 155 | + hwnd: HWND; {**< The window receiving the message *} |
| 156 | + msg: uInt; {**< The message identifier *} |
| 157 | + mp1: MPARAM; {**< The first first message parameter *} |
| 158 | + mp2: MPARAM; {**< The second first message parameter *} |
| 159 | + end; |
| 160 | + __WMINFO_OS2 = record |
| 161 | + hwnd: HWND; {**< The window handle *} |
| 162 | + hwndFrame: HWND; {**< The frame window handle *} |
| 163 | + end; |
| 164 | +{$ENDIF} |
| 165 | + |
142 | 166 |
|
143 | 167 | {** |
144 | 168 | * The custom event structure. |
|
165 | 189 | {$IFDEF SDL_VIDEO_DRIVER_VIVANTE} |
166 | 190 | SDL_SYSWM_VIVANTE: (vivante: __SYSWM_VIVANTE); |
167 | 191 | {$ENDIF} |
| 192 | + {$IFDEF SDL_VIDEO_DRIVER_OS2} |
| 193 | + SDL_SYSWM_OS2: (os2: __SYSWM_OS2); |
| 194 | + {$ENDIF} |
168 | 195 | SDL_SYSWM_UNKNOWN: (dummy: integer); |
169 | 196 | end; |
170 | 197 |
|
|
208 | 235 | {$IFDEF SDL_VIDEO_DRIVER_VIVANTE} |
209 | 236 | SDL_SYSWM_VIVANTE: (vivante: __WMINFO_VIVANTE); |
210 | 237 | {$ENDIF} |
| 238 | + {$IFDEF SDL_VIDEO_DRIVER_OS2} |
| 239 | + SDL_SYSWM_OS2: (os2: __WMINFO_OS2); |
| 240 | + {$ENDIF} |
211 | 241 | (* Ensure this union is always 64 bytes (8 64-bit pointers) *) |
212 | 242 | SDL_SYSWM_UNKNOWN: (dummy: array[0..63] of Byte); |
213 | 243 | end; |
|
0 commit comments