From 622f214ff3ac5fbb4e11d961bade869533201cea Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 8 Aug 2024 01:25:15 +0900 Subject: [PATCH] Update iOS method calls --- osu.Framework.iOS/IOSWindow.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Framework.iOS/IOSWindow.cs b/osu.Framework.iOS/IOSWindow.cs index 674156ec76..c0ec669c76 100644 --- a/osu.Framework.iOS/IOSWindow.cs +++ b/osu.Framework.iOS/IOSWindow.cs @@ -12,6 +12,7 @@ using osu.Framework.Platform; using osu.Framework.Platform.SDL3; using SDL; +using static SDL.SDL3; using UIKit; namespace osu.Framework.iOS @@ -55,8 +56,9 @@ protected override unsafe void RunMainLoop() // iOS may be a good forward direction if this ever comes up, as a user may see a potentially higher // frame rate with multi-threaded mode turned on, but it is going to give them worse input latency // and higher power usage. - SDL3.SDL_iOSSetEventPump(SDL_bool.SDL_FALSE); - SDL3.SDL_iOSSetAnimationCallback(SDLWindowHandle, 1, &runFrame, ObjectHandle.Handle); + + SDL_SetiOSEventPump(SDL_bool.SDL_FALSE); + SDL_SetiOSAnimationCallback(SDLWindowHandle, 1, &runFrame, ObjectHandle.Handle); } [UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvCdecl) })]