mirror of
https://github.com/encounter/SDL.git
synced 2025-12-13 15:16:13 +00:00
Generalized the XInput user index into a player index
This commit is contained in:
@@ -99,6 +99,11 @@ extern "C"
|
||||
return SDL_joyname[device_index];
|
||||
}
|
||||
|
||||
static int HAIKU_JoystickGetDevicePlayerIndex(int device_index)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Function to perform the mapping from device index to the instance id for this index */
|
||||
static SDL_JoystickID HAIKU_JoystickGetDeviceInstanceID(int device_index)
|
||||
{
|
||||
@@ -256,6 +261,7 @@ extern "C"
|
||||
HAIKU_JoystickGetCount,
|
||||
HAIKU_JoystickDetect,
|
||||
HAIKU_JoystickGetDeviceName,
|
||||
HAIKU_JoystickGetDevicePlayerIndex,
|
||||
HAIKU_JoystickGetDeviceGUID,
|
||||
HAIKU_JoystickGetDeviceInstanceID,
|
||||
HAIKU_JoystickOpen,
|
||||
|
||||
Reference in New Issue
Block a user