Skip to content

Commit

Permalink
Fixed Visual Studio build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 5, 2020
1 parent 1bd1202 commit 1d1a35e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/joystick/hidapi/SDL_hidapi_rumble.c
Expand Up @@ -28,6 +28,7 @@
#include "SDL_thread.h"
#include "SDL_hidapijoystick_c.h"
#include "SDL_hidapi_rumble.h"
#include "../../thread/SDL_systhread.h"


typedef struct SDL_HIDAPI_RumbleRequest
Expand Down Expand Up @@ -127,7 +128,7 @@ SDL_HIDAPI_StartRumbleThread(SDL_HIDAPI_RumbleContext *ctx)
}

ctx->running = SDL_TRUE;
ctx->thread = SDL_CreateThread(SDL_HIDAPI_RumbleThread, "HIDAPI Rumble", ctx);
ctx->thread = SDL_CreateThreadInternal(SDL_HIDAPI_RumbleThread, "HIDAPI Rumble", 0, ctx);
if (!ctx->thread) {
SDL_HIDAPI_StopRumbleThread(ctx);
return -1;
Expand Down

0 comments on commit 1d1a35e

Please sign in to comment.