Skip to content

Commit 6d28f19

Browse files
committed
switch: update for 2.24.0
1 parent 1f58ccf commit 6d28f19

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/joystick/switch/SDL_sysjoystick.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ static const char *SWITCH_JoystickGetDeviceName(int device_index) {
188188
return "Switch Controller";
189189
}
190190

191+
static const char *SWITCH_JoystickGetDevicePath(int index)
192+
{
193+
return NULL;
194+
}
195+
191196
static int SWITCH_JoystickGetDevicePlayerIndex(int device_index) {
192197
return -1;
193198
}
@@ -336,6 +341,7 @@ SDL_JoystickDriver SDL_SWITCH_JoystickDriver = {
336341
SWITCH_JoystickGetCount,
337342
SWITCH_JoystickDetect,
338343
SWITCH_JoystickGetDeviceName,
344+
SWITCH_JoystickGetDevicePath,
339345
SWITCH_JoystickGetDevicePlayerIndex,
340346
SWITCH_JoystickSetDevicePlayerIndex,
341347
SWITCH_JoystickGetDeviceGUID,

src/timer/switch/SDL_systimer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ SDL_TicksQuit(void)
4545
started = false;
4646
}
4747

48-
Uint32 SDL_GetTicks(void)
48+
Uint64 SDL_GetTicks64(void)
4949
{
5050
if (!started) {
5151
SDL_TicksInit();
5252
}
5353

54-
return (Uint32) ((SDL_GetPerformanceCounter() - start) * 1000 / SDL_GetPerformanceFrequency());
54+
return (SDL_GetPerformanceCounter() - start) * 1000 / SDL_GetPerformanceFrequency();
5555
}
5656

5757
Uint64

src/video/switch/SDL_switchvideo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ SWITCH_Destroy(SDL_VideoDevice *device)
5252
}
5353

5454
static SDL_VideoDevice *
55-
SWITCH_CreateDevice(int devindex)
55+
SWITCH_CreateDevice()
5656
{
5757
SDL_VideoDevice *device;
5858

0 commit comments

Comments
 (0)