From 5f920d663928178327c1e078d482d3334958a726 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 7 Nov 2023 07:55:30 +0300
Subject: [PATCH] fix emscripten build after commit 07cb7c10
---
src/joystick/emscripten/SDL_sysjoystick.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/joystick/emscripten/SDL_sysjoystick.c b/src/joystick/emscripten/SDL_sysjoystick.c
index 4f9dffaaae93..dbce1337513d 100644
--- a/src/joystick/emscripten/SDL_sysjoystick.c
+++ b/src/joystick/emscripten/SDL_sysjoystick.c
@@ -67,7 +67,7 @@ static EM_BOOL Emscripten_JoyStickConnected(int eventType, const EmscriptenGamep
item->naxes = gamepadEvent->numAxes;
item->nbuttons = gamepadEvent->numButtons;
- item->device_instance = SDL_GetNextJoystickInstanceID();
+ item->device_instance = SDL_GetNextObjectID();
item->timestamp = gamepadEvent->timestamp;
@@ -94,7 +94,6 @@ static EM_BOOL Emscripten_JoyStickConnected(int eventType, const EmscriptenGamep
#ifdef DEBUG_JOYSTICK
SDL_Log("Number of joysticks is %d", numjoysticks);
#endif
-
#ifdef DEBUG_JOYSTICK
SDL_Log("Added joystick with index %d", item->index);
#endif