mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 17:36:25 +00:00
Added SDL_hidapi_rumble.c to the macOS, iOS and tvOS builds
This commit is contained in:
@@ -141,7 +141,7 @@ int SDL_HIDAPI_SendRumble(SDL_HIDAPI_Device *device, const Uint8 *data, int size
|
||||
SDL_HIDAPI_RumbleRequest *request;
|
||||
|
||||
if (size > sizeof(request->data)) {
|
||||
return SDL_SetError("Couldn't send rumble, size %d is greater than %d", size, sizeof(request->data));
|
||||
return SDL_SetError("Couldn't send rumble, size %d is greater than %d", size, (int)sizeof(request->data));
|
||||
}
|
||||
|
||||
if (!ctx->running) {
|
||||
@@ -174,7 +174,7 @@ int SDL_HIDAPI_SendRumble(SDL_HIDAPI_Device *device, const Uint8 *data, int size
|
||||
return size;
|
||||
}
|
||||
|
||||
void SDL_HIDAPI_QuitRumble()
|
||||
void SDL_HIDAPI_QuitRumble(void)
|
||||
{
|
||||
SDL_HIDAPI_RumbleContext *ctx = &rumble_context;
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
/* Handle rumble on a separate thread so it doesn't block the application */
|
||||
int SDL_HIDAPI_SendRumble(SDL_HIDAPI_Device *device, const Uint8 *data, int size);
|
||||
void SDL_HIDAPI_QuitRumble();
|
||||
void SDL_HIDAPI_QuitRumble(void);
|
||||
|
||||
#endif /* SDL_JOYSTICK_HIDAPI */
|
||||
|
||||
|
Reference in New Issue
Block a user