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