SDL_video_unsupported.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2026 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #include "SDL_internal.h"
  19. #include "SDL_video_unsupported.h"
  20. #ifndef SDL_VIDEO_DRIVER_WINDOWS
  21. #if defined(SDL_PLATFORM_WINDOWS)
  22. bool SDL_RegisterApp(const char *name, Uint32 style, void *hInst)
  23. {
  24. (void)name;
  25. (void)style;
  26. (void)hInst;
  27. return true;
  28. }
  29. void SDL_UnregisterApp(void)
  30. {
  31. }
  32. void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata)
  33. {
  34. }
  35. #endif // defined(SDL_PLATFORM_WINDOWS)
  36. bool SDL_GetDXGIOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex)
  37. {
  38. (void)displayID;
  39. (void)adapterIndex;
  40. (void)outputIndex;
  41. return SDL_Unsupported();
  42. }
  43. int SDL_GetDirect3D9AdapterIndex(SDL_DisplayID displayID)
  44. {
  45. (void)displayID;
  46. SDL_Unsupported();
  47. return -1;
  48. }
  49. #elif defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
  50. int SDL_GetDirect3D9AdapterIndex(SDL_DisplayID displayID)
  51. {
  52. (void)displayID;
  53. SDL_Unsupported();
  54. return -1;
  55. }
  56. #endif // !SDL_VIDEO_DRIVER_WINDOWS
  57. #ifndef SDL_PLATFORM_GDK
  58. bool SDL_GetGDKTaskQueue(XTaskQueueHandle *outTaskQueue)
  59. {
  60. (void)outTaskQueue;
  61. return SDL_Unsupported();
  62. }
  63. #endif
  64. #if !defined(SDL_PLATFORM_IOS) || defined(SDL_PLATFORM_TVOS) || defined(SDL_PLATFORM_VISIONOS)
  65. void SDL_OnApplicationDidChangeStatusBarOrientation(void)
  66. {
  67. SDL_Unsupported();
  68. }
  69. #endif
  70. #ifndef SDL_VIDEO_DRIVER_UIKIT
  71. bool SDL_SetiOSAnimationCallback(SDL_Window *window, int interval, SDL_iOSAnimationCallback callback, void *callbackParam)
  72. {
  73. (void)window;
  74. (void)interval;
  75. (void)callback;
  76. (void)callbackParam;
  77. return SDL_Unsupported();
  78. }
  79. void SDL_SetiOSEventPump(bool enabled)
  80. {
  81. (void)enabled;
  82. SDL_Unsupported();
  83. }
  84. #endif