Fixed joystick GUID renaming for other platforms
This commit is contained in:
parent
af4d258edb
commit
5f53c47559
6 changed files with 24 additions and 24 deletions
|
@ -131,9 +131,9 @@ SDL_SYS_JoystickQuit(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
@ -141,9 +141,9 @@ JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
return guid;
|
return guid;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = joystick->name;
|
const char *name = joystick->name;
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
|
|
@ -261,9 +261,9 @@ extern "C"
|
||||||
SDL_joyname[0] = NULL;
|
SDL_joyname[0] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
@ -271,9 +271,9 @@ extern "C"
|
||||||
return guid;
|
return guid;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = joystick->name;
|
const char *name = joystick->name;
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
|
|
@ -584,9 +584,9 @@ SDL_SYS_JoystickQuit(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
@ -594,9 +594,9 @@ JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
return guid;
|
return guid;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = joystick->name;
|
const char *name = joystick->name;
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
|
|
@ -108,9 +108,9 @@ SDL_SYS_JoystickQuit(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
@ -119,9 +119,9 @@ JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = joystick->name;
|
const char *name = joystick->name;
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
|
|
@ -133,9 +133,9 @@ SDL_SYS_JoystickQuit(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
@ -143,9 +143,9 @@ JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
return guid;
|
return guid;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = joystick->name;
|
const char *name = joystick->name;
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
|
|
@ -186,9 +186,9 @@ SDL_SYS_JoystickQuit(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
const char *name = SDL_SYS_JoystickNameForDeviceIndex( device_index );
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
@ -196,9 +196,9 @@ JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||||
return guid;
|
return guid;
|
||||||
}
|
}
|
||||||
|
|
||||||
JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||||
{
|
{
|
||||||
JoystickGUID guid;
|
SDL_JoystickGUID guid;
|
||||||
// the GUID is just the first 16 chars of the name for now
|
// the GUID is just the first 16 chars of the name for now
|
||||||
const char *name = joystick->name;
|
const char *name = joystick->name;
|
||||||
SDL_zero( guid );
|
SDL_zero( guid );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue