mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-04 19:55:19 +00:00
Fixed building with Xcode 15.4
Fixes https://github.com/libsdl-org/SDL/issues/14740
(cherry picked from commit 504041a1ba)
This commit is contained in:
parent
0bc2296756
commit
2237a8eba2
2 changed files with 3 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ iOS
|
|||
Building the Simple DirectMedia Layer for iOS 11.0+
|
||||
==============================================================================
|
||||
|
||||
Please note that building SDL requires at least Xcode 16 and the iOS 18 SDK.
|
||||
Please note that building SDL requires at least Xcode 12.2 and the iOS 14.2 SDK.
|
||||
|
||||
Instructions:
|
||||
|
||||
|
|
|
|||
|
|
@ -310,7 +310,8 @@ void UIKit_SetGameControllerInteraction(bool enabled)
|
|||
|
||||
void UIKit_SetViewGameControllerInteraction(UIView *view, bool enabled)
|
||||
{
|
||||
#ifndef SDL_PLATFORM_TVOS
|
||||
#if defined(SDL_PLATFORM_VISIONOS) || \
|
||||
(defined(SDL_PLATFORM_IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000)
|
||||
if (@available(iOS 18.0, visionOS 2.0, *)) {
|
||||
if (enabled) {
|
||||
GCEventInteraction *interaction = [[GCEventInteraction alloc] init];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue