sdlsystem.inc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. // from "SDL_system.h"
  2. (* Platform specific functions for Windows *)
  3. {$IF DEFINED(WIN32) OR DEFINED(WIN64)}
  4. type
  5. PPSDL_WindowsMessageHook = ^PSDL_WindowsMessageHook;
  6. PSDL_WindowsMessageHook = ^TSDL_WindowsMessageHook;
  7. TSDL_WindowsMessageHook = procedure(userdata, hWnd: Pointer; mesage: cuint; wParam: cuint64; lParam: cint64); cdecl;
  8. {**
  9. * Set a callback for every Windows message, run before TranslateMessage().
  10. *
  11. * \param callback The SDL_WindowsMessageHook function to call.
  12. * \param userdata a pointer to pass to every iteration of `callback`
  13. *
  14. * \since This function is available since SDL 2.0.4.
  15. *}
  16. procedure SDL_SetWindowsMessageHook(callback: TSDL_WindowsMessageHook; userdata: Pointer); cdecl;
  17. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  18. {**
  19. * Get the D3D9 adapter index that matches the specified display index.
  20. *
  21. * The returned adapter index can be passed to `IDirect3D9::CreateDevice` and
  22. * controls on which monitor a full screen application will appear.
  23. *
  24. * \param displayIndex the display index for which to get the D3D9 adapter
  25. * index
  26. * \returns the D3D9 adapter index on success or a negative error code on
  27. * failure; call SDL_GetError() for more information.
  28. *
  29. * \since This function is available since SDL 2.0.1.
  30. *}
  31. function SDL_Direct3D9GetAdapterIndex(displayIndex:cint):cint; cdecl;
  32. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  33. type
  34. PIDirect3DDevice9 = type Pointer;
  35. PID3D11Device = type Pointer;
  36. PID3D12Device = type Pointer;
  37. {**
  38. * Get the D3D9 device associated with a renderer.
  39. *
  40. * Once you are done using the device, you should release it to avoid a
  41. * resource leak.
  42. *
  43. * \param renderer the renderer from which to get the associated D3D device
  44. * \returns the D3D9 device associated with given renderer or NIL if it is
  45. * not a D3D9 renderer; call SDL_GetError() for more information.
  46. *
  47. * \since This function is available since SDL 2.0.1.
  48. *}
  49. function SDL_RenderGetD3D9Device(renderer:PSDL_Renderer):PIDirect3DDevice9; cdecl;
  50. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  51. {**
  52. * Get the D3D11 device associated with a renderer.
  53. *
  54. * Once you are done using the device, you should release it to avoid a
  55. * resource leak.
  56. *
  57. * \param renderer the renderer from which to get the associated D3D11 device
  58. * \returns the D3D11 device associated with given renderer or NIL if it is
  59. * not a D3D11 renderer; call SDL_GetError() for more information.
  60. *
  61. * \since This function is available since SDL 2.0.16.
  62. *}
  63. function SDL_RenderGetD3D11Device(renderer:PSDL_Renderer):PID3D11Device; cdecl;
  64. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  65. {**
  66. * Get the D3D12 device associated with a renderer.
  67. *
  68. * Once you are done using the device, you should release it to avoid a
  69. * resource leak.
  70. *
  71. * \param renderer the renderer from which to get the associated D3D12 device
  72. * \returns the D3D12 device associated with given renderer or NIL if it is
  73. * not a D3D12 renderer; call SDL_GetError() for more information.
  74. *
  75. * \since This function is available since SDL 2.24.0.
  76. *}
  77. function SDL_RenderGetD3D12Device(renderer:PSDL_Renderer):PID3D12Device; cdecl;
  78. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  79. {**
  80. * Get the DXGI Adapter and Output indices for the specified display index.
  81. *
  82. * The DXGI Adapter and Output indices can be passed to `EnumAdapters` and
  83. * `EnumOutputs` respectively to get the objects required to create a DX10 or
  84. * DX11 device and swap chain.
  85. *
  86. * Before SDL 2.0.4 this function did not return a value.
  87. * Since SDL 2.0.4 it returns a TSDL_bool.
  88. *
  89. * \param displayIndex the display index for which to get both indices
  90. * \param adapterIndex a pointer to be filled in with the adapter index
  91. * \param outputIndex a pointer to be filled in with the output index
  92. * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
  93. * for more information.
  94. *
  95. * \since This function is available since SDL 2.0.2.
  96. *}
  97. function SDL_DXGIGetOutputInfo(displayIndex: cint; adapterIndex, outputIndex: pcint): TSDL_Bool;
  98. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  99. {$ENDIF WIN32 OR WIN64}
  100. (* Platform specific functions for Linux *)
  101. {$IFDEF LINUX}
  102. {**
  103. * Sets the UNIX nice value for a thread.
  104. *
  105. * This uses setpriority() if possible, and RealtimeKit if available.
  106. *
  107. * \param threadID the Unix thread ID to change priority of.
  108. * \param priority The new, Unix-specific, priority value.
  109. * \returns 0 on success, or -1 on error.
  110. *
  111. * \since This function is available since SDL 2.0.9.
  112. *}
  113. function SDL_LinuxSetThreadPriority(threadID: cint64; priority: cint): cint; cdecl;
  114. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  115. {**
  116. * Sets the priority (not nice level) and scheduling policy for a thread.
  117. *
  118. * This uses setpriority() if possible, and RealtimeKit if available.
  119. *
  120. * \param threadID The Unix thread ID to change priority of.
  121. * \param sdlPriority The new TSDL_ThreadPriority value.
  122. * \param schedPolicy The new scheduling policy (SCHED_FIFO, SCHED_RR,
  123. * SCHED_OTHER, etc...)
  124. * \returns 0 on success, or -1 on error.
  125. *
  126. * \since This function is available since SDL 2.0.18.
  127. *}
  128. function SDL_LinuxSetThreadPriorityAndPolicy(threadID: cint64; sdlPriority, schedPolicy: cint): cint; cdecl;
  129. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  130. {$ENDIF LINUX}
  131. (* Platform specific functions for iOS *)
  132. {$IFDEF __IPHONEOS__}
  133. type
  134. PPSDL_iPhoneAnimationCallback = ^PSDL_iPhoneAnimationCallback;
  135. PSDL_iPhoneAnimationCallback = ^TSDL_iPhoneAnimationCallback;
  136. TSDL_iPhoneAnimationCallback = procedure(callbackParam: Pointer); cdecl;
  137. {**
  138. * Use this function to set the animation callback on Apple iOS.
  139. *
  140. * This function is only available on Apple iOS.
  141. *
  142. * For more information see:
  143. * https://github.com/libsdl-org/SDL/blob/main/docs/README-ios.md
  144. *
  145. * \param window the window for which the animation callback should be set
  146. * \param interval the number of frames after which **callback** will be
  147. * called
  148. * \param callback the function to call for every frame.
  149. * \param callbackParam a pointer that is passed to `callback`.
  150. * \returns 0 on success or a negative error code on failure; call
  151. * SDL_GetError() for more information.
  152. *
  153. * \since This function is available since SDL 2.0.0.
  154. *
  155. * \sa SDL_iPhoneSetEventPump
  156. *}
  157. function SDL_iPhoneSetAnimationCallback(window: PSDL_Window; interval: cint; callback: TSDL_iPhoneAnimationCallback; callbackParam: Pointer); cdecl;
  158. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  159. {**
  160. * Use this function to enable or disable the SDL event pump on Apple iOS.
  161. *
  162. * This function is only available on Apple iOS.
  163. *
  164. * \param enabled SDL_TRUE to enable the event pump, SDL_FALSE to disable it
  165. *
  166. * \since This function is available since SDL 2.0.0.
  167. *
  168. * \sa SDL_iPhoneSetAnimationCallback
  169. *}
  170. procedure SDL_iPhoneSetEventPump(enabled: TSDL_Bool); cdecl;
  171. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  172. {$ENDIF __IPHONEOS__}
  173. (* Platform specific functions for Android *)
  174. {$IFDEF ANDROID}
  175. {**
  176. * Get the Android Java Native Interface Environment of the current thread.
  177. *
  178. * This is the JNIEnv one needs to access the Java virtual machine from native
  179. * code, and is needed for many Android APIs to be usable from Pascal.
  180. *
  181. * The prototype of the function in SDL's code actually declare a Pointer return
  182. * type, even if the implementation returns a pointer to a JNIEnv. The
  183. * rationale being that the SDL units can avoid using the JNI unit.
  184. *
  185. * \returns a pointer to Java native interface object (JNIEnv) to which the
  186. * current thread is attached, or NIL on error.
  187. *
  188. * \since This function is available since SDL 2.0.0.
  189. *
  190. * \sa SDL_AndroidGetActivity
  191. *}
  192. function SDL_AndroidGetJNIEnv(): Pointer; cdecl;
  193. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  194. (**
  195. * Retrieve the Java instance of the Android activity class.
  196. *
  197. * The prototype of the function in SDL's code actually declares a Pointer
  198. * return type, even if the implementation returns a JObject. The rationale
  199. * being that the SDL units can avoid using the JNI unit.
  200. *
  201. * The JObject returned by the function is a local reference and must be
  202. * released by the caller. See the PushLocalFrame() and PopLocalFrame() or
  203. * DeleteLocalRef() functions of the Java native interface:
  204. *
  205. * https://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html
  206. *
  207. * \returns the jobject representing the instance of the Activity class of the
  208. * Android application, or NIL on error.
  209. *
  210. * \since This function is available since SDL 2.0.0.
  211. *
  212. * \sa SDL_AndroidGetJNIEnv
  213. *)
  214. function SDL_AndroidGetActivity(): Pointer; cdecl;
  215. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  216. {**
  217. * Query Android API level of the current device.
  218. *
  219. * - API level 34: Android 14
  220. * - API level 33: Android 13
  221. * - API level 32: Android 12L
  222. * - API level 31: Android 12
  223. * - API level 30: Android 11
  224. * - API level 29: Android 10
  225. * - API level 28: Android 9 "Pie"
  226. * - API level 27: Android 8.1 "Oreo"
  227. * - API level 26: Android 8.0 "Oreo"
  228. * - API level 25: Android 7.1 "Nougat"
  229. * - API level 24: Android 7.0 "Nougat"
  230. * - API level 23: Android 6.0 "Marshmallow"
  231. * - API level 22: Android 5.1 "Lollipop"
  232. * - API level 21: Android 5.0 "Lollipop"
  233. * - API level 20: Android 4.4W "KitKat"
  234. * - API level 19: Android 4.4 "KitKat"
  235. * - API level 18: Android 4.3 "Jelly Bean"
  236. * - API level 17: Android 4.2 "Jelly Bean"
  237. * - API level 16: Android 4.1 "Jelly Bean"
  238. * - API level 15: Android 4.0.3 "Ice Cream Sandwich"
  239. * - API level 14: Android 4.0 "Ice Cream Sandwich"
  240. * - API level 13: Android 3.2 "Honeycomb"
  241. * - API level 12: Android 3.1 "Honeycomb"
  242. * - API level 11: Android 3.0 "Honeycomb"
  243. * - API level 10: Android 2.3.3 "Gingerbread"
  244. *
  245. * \returns the Android API level.
  246. *
  247. * \since This function is available since SDL 2.0.12.
  248. *}
  249. function SDL_GetAndroidSDKVersion(): cint; cdecl;
  250. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  251. {**
  252. * Query if the application is running on Android TV.
  253. *
  254. * \returns SDL_TRUE if this is Android TV, SDL_FALSE otherwise.
  255. *
  256. * \since This function is available since SDL 2.0.8.
  257. *}
  258. function SDL_IsAndroidTV(): TSDL_Bool; cdecl;
  259. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  260. {**
  261. * Query if the application is running on a Chromebook.
  262. *
  263. * \returns SDL_TRUE if this is a Chromebook, SDL_FALSE otherwise.
  264. *
  265. * \since This function is available since SDL 2.0.9.
  266. *}
  267. function SDL_IsChromebook(): TSDL_Bool; cdecl;
  268. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  269. {**
  270. * Query if the application is running on a Samsung DeX docking station.
  271. *
  272. * \returns SDL_TRUE if this is a DeX docking station, SDL_FALSE otherwise.
  273. *
  274. * \since This function is available since SDL 2.0.9.
  275. *}
  276. function SDL_IsDeXMode(): TSDL_Bool; cdecl;
  277. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  278. {**
  279. * Trigger the Android system back button behavior.
  280. *
  281. * \since This function is available since SDL 2.0.9.
  282. *}
  283. procedure SDL_AndroidBackButton(); cdecl;
  284. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  285. {**
  286. See the official Android developer guide for more information:
  287. http://developer.android.com/guide/topics/data/data-storage.html
  288. *}
  289. const
  290. SDL_ANDROID_EXTERNAL_STORAGE_READ = $01;
  291. SDL_ANDROID_EXTERNAL_STORAGE_WRITE = $02;
  292. {**
  293. * Get the path used for internal storage for this application.
  294. *
  295. * This path is unique to your application and cannot be written to by other
  296. * applications.
  297. *
  298. * Your internal storage path is typically:
  299. * `/data/data/your.app.package/files`.
  300. *
  301. * \returns the path used for internal storage or NIL on failure;
  302. * call SDL_GetError() for more information.
  303. *
  304. * \since This function is available since SDL 2.0.0.
  305. *
  306. * \sa SDL_AndroidGetExternalStorageState
  307. *}
  308. function SDL_AndroidGetInternalStoragePath(): PAnsiChar; cdecl;
  309. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  310. {**
  311. * Get the current state of external storage.
  312. *
  313. * The current state of external storage, a bitmask of these values:
  314. * `SDL_ANDROID_EXTERNAL_STORAGE_READ`, `SDL_ANDROID_EXTERNAL_STORAGE_WRITE`.
  315. *
  316. * If external storage is currently unavailable, this will return 0.
  317. *
  318. * \returns the current state of external storage on success or 0 on failure;
  319. * call SDL_GetError() for more information.
  320. *
  321. * \since This function is available since SDL 2.0.0.
  322. *
  323. * \sa SDL_AndroidGetExternalStoragePath
  324. *}
  325. function SDL_AndroidGetExternalStorageState(): cint; cdecl;
  326. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  327. {**
  328. * Get the path used for external storage for this application.
  329. *
  330. * This path is unique to your application, but is public and can be written
  331. * to by other applications.
  332. *
  333. * Your external storage path is typically:
  334. * `/storage/sdcard0/Android/data/your.app.package/files`.
  335. *
  336. * \returns the path used for external storage for this application on success
  337. * or NIL on failure; call SDL_GetError() for more information.
  338. *
  339. * \since This function is available since SDL 2.0.0.
  340. *
  341. * \sa SDL_AndroidGetExternalStorageState
  342. *}
  343. function SDL_AndroidGetExternalStoragePath(): PAnsiChar; cdecl;
  344. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  345. {**
  346. * Request permissions at runtime.
  347. *
  348. * This blocks the calling thread until the permission is granted or denied.
  349. *
  350. * For a full list of possible permission names, consult the Android docs:
  351. * https://developer.android.com/reference/android/Manifest.permission
  352. *
  353. * \param permission The permission to request.
  354. * \returns SDL_TRUE if the permission was granted, SDL_FALSE otherwise.
  355. *
  356. * \since This function is available since SDL 2.0.14.
  357. *}
  358. function SDL_AndroidRequestPermission(const permission: PAnsiChar): TSDL_Bool; cdecl;
  359. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  360. {**
  361. * Shows an Android toast notification.
  362. *
  363. * Toasts are a sort of lightweight notification that are unique to Android.
  364. *
  365. * https://developer.android.com/guide/topics/ui/notifiers/toasts
  366. *
  367. * Shows toast in UI thread.
  368. *
  369. * For the `gravity` parameter, choose a value from here, or -1 if you don't
  370. * have a preference:
  371. *
  372. * https://developer.android.com/reference/android/view/Gravity
  373. *
  374. * \param message text message to be shown
  375. * \param duration 0=short, 1=long
  376. * \param gravity where the notification should appear on the screen.
  377. * \param xoffset set this parameter only when gravity >=0
  378. * \param yoffset set this parameter only when gravity >=0
  379. * \returns 0 if success, -1 if any error occurs.
  380. *
  381. * \since This function is available since SDL 2.0.16.
  382. *}
  383. function SDL_AndroidShowToast(const message: PAnsiChar; duration, gravity, xoffset, yoffset: cint): cint; cdecl;
  384. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  385. {**
  386. * Send a user command to SDLActivity.
  387. *
  388. * Override "boolean onUnhandledMessage(Message msg)" to handle the message.
  389. *
  390. * \param command user command that must be greater or equal to 0x8000
  391. * \param param user parameter
  392. *
  393. * \since This function is available since SDL 2.0.22.
  394. *}
  395. function SDL_AndroidSendMessage(command: cUint32; param: cint): cint; cdecl;
  396. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  397. {$ENDIF ANDROID}
  398. (* Platform specific functions for WinRT *)
  399. {$IFDEF __WINRT__}
  400. Type
  401. {** WinRT / Windows Phone path types *}
  402. PPSDL_WinRT_Path = ^PSDL_WinRT_Path;
  403. PSDL_WinRT_Path = ^TSDL_WinRT_Path;
  404. TSDL_WinRT_Path = (
  405. {** The installed app's root directory.
  406. Files here are likely to be read-only. *}
  407. SDL_WINRT_PATH_INSTALLED_LOCATION = 0,
  408. {** The app's local data store. Files may be written here *}
  409. SDL_WINRT_PATH_LOCAL_FOLDER = 1,
  410. {** The app's roaming data store. Unsupported on Windows Phone.
  411. Files written here may be copied to other machines via a network
  412. connection.
  413. *}
  414. SDL_WINRT_PATH_ROAMING_FOLDER = 2,
  415. {** The app's temporary data store. Unsupported on Windows Phone.
  416. Files written here may be deleted at any time. *}
  417. SDL_WINRT_PATH_TEMP_FOLDER = 3
  418. );
  419. TSDL_WinRT_DeviceFamily = (
  420. {** Unknown family *}
  421. SDL_WINRT_DEVICEFAMILY_UNKNOWN,
  422. {** Desktop family *}
  423. SDL_WINRT_DEVICEFAMILY_DESKTOP,
  424. {** Mobile family (for example smartphone) *}
  425. SDL_WINRT_DEVICEFAMILY_MOBILE,
  426. {** XBox family *}
  427. SDL_WINRT_DEVICEFAMILY_XBOX
  428. );
  429. {**
  430. * \brief Retrieves a WinRT defined path on the local file system
  431. *
  432. * \note Documentation on most app-specific path types on WinRT
  433. * can be found on MSDN, at the URL:
  434. * http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
  435. *
  436. * \param pathType The type of path to retrieve.
  437. * \ret A UCS-2 string (16-bit, wide-char) containing the path, or NULL
  438. * if the path is not available for any reason. Not all paths are
  439. * available on all versions of Windows. This is especially true on
  440. * Windows Phone. Check the documentation for the given
  441. * SDL_WinRT_Path for more information on which path types are
  442. * supported where.
  443. *}
  444. function SDL_WinRTGetFSPathUNICODE(pathType :TSDL_WinRT_Path):PWideChar;
  445. cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  446. {**
  447. * \brief Retrieves a WinRT defined path on the local file system
  448. *
  449. * \note Documentation on most app-specific path types on WinRT
  450. * can be found on MSDN, at the URL:
  451. * http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
  452. *
  453. * \param pathType The type of path to retrieve.
  454. * \ret A UTF-8 string (8-bit, multi-byte) containing the path, or NULL
  455. * if the path is not available for any reason. Not all paths are
  456. * available on all versions of Windows. This is especially true on
  457. * Windows Phone. Check the documentation for the given
  458. * SDL_WinRT_Path for more information on which path types are
  459. * supported where.
  460. *}
  461. function SDL_WinRTGetFSPathUTF8(pathType :TSDL_WinRT_Path):PChar;
  462. cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  463. {**
  464. * Detects the device family of WinRT platform at runtime.
  465. *
  466. * \returns a value from the SDL_WinRT_DeviceFamily enum.
  467. *
  468. * \since This function is available since SDL 2.0.8.
  469. *}
  470. function SDL_WinRTGetDeviceFamily(): TSDL_WinRT_DeviceFamily;
  471. cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  472. {$ENDIF __WINRT__}
  473. {**
  474. * Query if the current device is a tablet.
  475. *
  476. * If SDL can't determine this, it will return SDL_FALSE.
  477. *
  478. * \returns SDL_TRUE if the device is a tablet, SDL_FALSE otherwise.
  479. *
  480. * \since This function is available since SDL 2.0.9.
  481. *}
  482. function SDL_IsTablet(): TSDL_Bool; cdecl;
  483. external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  484. { Functions used by iOS application delegates to notify SDL about state changes }
  485. procedure SDL_OnApplicationWillTerminate(); cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  486. procedure SDL_OnApplicationDidReceiveMemoryWarning(); cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  487. procedure SDL_OnApplicationWillResignActive(); cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  488. procedure SDL_OnApplicationDidEnterBackground(); cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  489. procedure SDL_OnApplicationWillEnterForeground(); cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  490. procedure SDL_OnApplicationDidBecomeActive(); cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  491. {$IFDEF __IPHONEOS__}
  492. procedure SDL_OnApplicationDidChangeStatusBarOrientation(); cdecl; external {$IFDEF DYNAMIC_LINK}SDL_LibName{$ENDIF};
  493. {$ENDIF}