ios: Renamed APIs that referred to "iPhone" to refer to "iOS".
Macros that papered over this difference in SDL2 have been removed for SDL3. Fixes #9527.
This commit is contained in:
@@ -911,8 +911,8 @@ SDL3_0.0.0 {
|
||||
SDL_hid_send_feature_report;
|
||||
SDL_hid_set_nonblocking;
|
||||
SDL_hid_write;
|
||||
SDL_iPhoneSetAnimationCallback;
|
||||
SDL_iPhoneSetEventPump;
|
||||
SDL_iOSSetAnimationCallback;
|
||||
SDL_iOSSetEventPump;
|
||||
SDL_iconv;
|
||||
SDL_iconv_close;
|
||||
SDL_iconv_open;
|
||||
|
||||
@@ -935,8 +935,8 @@
|
||||
#define SDL_hid_send_feature_report SDL_hid_send_feature_report_REAL
|
||||
#define SDL_hid_set_nonblocking SDL_hid_set_nonblocking_REAL
|
||||
#define SDL_hid_write SDL_hid_write_REAL
|
||||
#define SDL_iPhoneSetAnimationCallback SDL_iPhoneSetAnimationCallback_REAL
|
||||
#define SDL_iPhoneSetEventPump SDL_iPhoneSetEventPump_REAL
|
||||
#define SDL_iOSSetAnimationCallback SDL_iOSSetAnimationCallback_REAL
|
||||
#define SDL_iOSSetEventPump SDL_iOSSetEventPump_REAL
|
||||
#define SDL_iconv SDL_iconv_REAL
|
||||
#define SDL_iconv_close SDL_iconv_close_REAL
|
||||
#define SDL_iconv_open SDL_iconv_open_REAL
|
||||
|
||||
@@ -954,8 +954,8 @@ SDL_DYNAPI_PROC(int,SDL_hid_read_timeout,(SDL_hid_device *a, unsigned char *b, s
|
||||
SDL_DYNAPI_PROC(int,SDL_hid_send_feature_report,(SDL_hid_device *a, const unsigned char *b, size_t c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_hid_set_nonblocking,(SDL_hid_device *a, int b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_hid_write,(SDL_hid_device *a, const unsigned char *b, size_t c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_iPhoneSetAnimationCallback,(SDL_Window *a, int b, void (SDLCALL *c)(void *), void *d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_iPhoneSetEventPump,(SDL_bool a),(a),)
|
||||
SDL_DYNAPI_PROC(int,SDL_iOSSetAnimationCallback,(SDL_Window *a, int b, void (SDLCALL *c)(void *), void *d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_iOSSetEventPump,(SDL_bool a),(a),)
|
||||
SDL_DYNAPI_PROC(size_t,SDL_iconv,(SDL_iconv_t a, const char **b, size_t *c, char **d, size_t *e),(a,b,c,d,e),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_iconv_close,(SDL_iconv_t a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_iconv_t,SDL_iconv_open,(const char *a, const char *b),(a,b),return)
|
||||
|
||||
@@ -93,8 +93,8 @@ void SDL_OnApplicationDidChangeStatusBarOrientation(void)
|
||||
|
||||
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
||||
|
||||
DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam);
|
||||
int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
||||
DECLSPEC int SDLCALL SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam);
|
||||
int SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
||||
{
|
||||
(void)window;
|
||||
(void)interval;
|
||||
@@ -103,8 +103,8 @@ int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*call
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
|
||||
void SDL_iPhoneSetEventPump(SDL_bool enabled)
|
||||
DECLSPEC void SDLCALL SDL_iOSSetEventPump(SDL_bool enabled);
|
||||
void SDL_iOSSetEventPump(SDL_bool enabled)
|
||||
{
|
||||
(void)enabled;
|
||||
SDL_Unsupported();
|
||||
|
||||
@@ -404,9 +404,9 @@ static UIImage *SDL_LoadLaunchImageNamed(NSString *name, int screenh)
|
||||
[self performSelector:@selector(hideLaunchScreen) withObject:nil afterDelay:0.0];
|
||||
|
||||
/* run the user's application, passing argc and argv */
|
||||
SDL_iPhoneSetEventPump(SDL_TRUE);
|
||||
SDL_iOSSetEventPump(SDL_TRUE);
|
||||
exit_status = forward_main(forward_argc, forward_argv);
|
||||
SDL_iPhoneSetEventPump(SDL_FALSE);
|
||||
SDL_iOSSetEventPump(SDL_FALSE);
|
||||
|
||||
if (launchWindow) {
|
||||
launchWindow.hidden = YES;
|
||||
|
||||
@@ -126,7 +126,7 @@ Uint64 UIKit_GetEventTimestamp(NSTimeInterval nsTimestamp)
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
void SDL_iPhoneSetEventPump(SDL_bool enabled)
|
||||
void SDL_iOSSetEventPump(SDL_bool enabled)
|
||||
{
|
||||
UIKit_EventPumpEnabled = enabled;
|
||||
|
||||
|
||||
@@ -449,7 +449,7 @@ UIKit_GetSupportedOrientations(SDL_Window *window)
|
||||
}
|
||||
#endif /* !SDL_PLATFORM_TVOS */
|
||||
|
||||
int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
||||
int SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
||||
{
|
||||
if (!window || !window->driverdata) {
|
||||
return SDL_SetError("Invalid window");
|
||||
|
||||
Reference in New Issue
Block a user