File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
191196static 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 ,
Original file line number Diff line number Diff 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
5757Uint64
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ SWITCH_Destroy(SDL_VideoDevice *device)
5252}
5353
5454static SDL_VideoDevice *
55- SWITCH_CreateDevice (int devindex )
55+ SWITCH_CreateDevice ()
5656{
5757 SDL_VideoDevice * device ;
5858
You can’t perform that action at this time.
0 commit comments