mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 01:45:45 +00:00
ios: Move animation callback to its own typedef.
This commit is contained in:
parent
5b0f14a936
commit
5416bd5fdc
6 changed files with 27 additions and 6 deletions
|
|
@ -950,7 +950,7 @@ 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_iOSSetAnimationCallback,(SDL_Window *a, int b, void (SDLCALL *c)(void*), void *d),(a,b,c,d),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_iOSSetAnimationCallback,(SDL_Window *a, int b, SDL_iOSAnimationCallback c, 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)
|
||||
|
|
|
|||
|
|
@ -49,4 +49,8 @@ typedef struct XUserHandle XUserHandle;
|
|||
typedef void *SDL_AndroidRequestPermissionCallback;
|
||||
#endif
|
||||
|
||||
#ifndef SDL_PLATFORM_IOS
|
||||
typedef void *SDL_iOSAnimationCallback;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -93,8 +93,9 @@ void SDL_OnApplicationDidChangeStatusBarOrientation(void)
|
|||
|
||||
#ifndef SDL_VIDEO_DRIVER_UIKIT
|
||||
|
||||
SDL_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)
|
||||
typedef void (SDLCALL *SDL_iOSAnimationCallback)(void *userdata);
|
||||
SDL_DECLSPEC int SDLCALL SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, SDL_iOSAnimationCallback callback, void *callbackParam);
|
||||
int SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, SDL_iOSAnimationCallback callback, void *callbackParam)
|
||||
{
|
||||
(void)window;
|
||||
(void)interval;
|
||||
|
|
|
|||
|
|
@ -449,7 +449,7 @@ UIKit_GetSupportedOrientations(SDL_Window *window)
|
|||
}
|
||||
#endif /* !SDL_PLATFORM_TVOS */
|
||||
|
||||
int SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam)
|
||||
int SDL_iOSSetAnimationCallback(SDL_Window *window, int interval, SDL_iOSAnimationCallback callback, void *callbackParam)
|
||||
{
|
||||
if (!window || !window->driverdata) {
|
||||
return SDL_SetError("Invalid window");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue