Skip to content

Commit

Permalink
Update iOS method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Aug 7, 2024
1 parent b237eae commit 622f214
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions osu.Framework.iOS/IOSWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) })]
Expand Down

0 comments on commit 622f214

Please sign in to comment.