mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Update joystick api to 2.0.14
This commit is contained in:
parent
8e4271fa45
commit
a05f92da1c
@ -195,7 +195,7 @@ int VITA_JoystickOpen(SDL_Joystick *joystick, int device_index)
|
||||
* but instead should call SDL_PrivateJoystick*() to deliver events
|
||||
* and update joystick device state.
|
||||
*/
|
||||
void VITA_JoystickUpdate(SDL_Joystick *joystick)
|
||||
static void VITA_JoystickUpdate(SDL_Joystick *joystick)
|
||||
{
|
||||
int i;
|
||||
unsigned int buttons;
|
||||
@ -291,6 +291,31 @@ VITA_JoystickRumble(SDL_Joystick * joystick, Uint16 low_frequency_rumble, Uint16
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
static int
|
||||
VITA_JoystickRumbleTriggers(SDL_Joystick * joystick, Uint16 left, Uint16 right)
|
||||
{
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
static SDL_bool
|
||||
VITA_JoystickHasLED(SDL_Joystick * joystick)
|
||||
{
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
VITA_JoystickSetLED(SDL_Joystick * joystick, Uint8 red, Uint8 green, Uint8 blue)
|
||||
{
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
static int
|
||||
VITA_JoystickSetSensorsEnabled(SDL_Joystick *joystick, SDL_bool enabled)
|
||||
{
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
|
||||
SDL_JoystickDriver SDL_VITA_JoystickDriver =
|
||||
{
|
||||
@ -304,7 +329,14 @@ SDL_JoystickDriver SDL_VITA_JoystickDriver =
|
||||
VITA_JoystickGetDeviceInstanceID,
|
||||
|
||||
VITA_JoystickOpen,
|
||||
|
||||
VITA_JoystickRumble,
|
||||
VITA_JoystickRumbleTriggers,
|
||||
|
||||
VITA_JoystickHasLED,
|
||||
VITA_JoystickSetLED,
|
||||
VITA_JoystickSetSensorsEnabled,
|
||||
|
||||
VITA_JoystickUpdate,
|
||||
VITA_JoystickClose,
|
||||
VITA_JoystickQuit,
|
||||
|
Loading…
Reference in New Issue
Block a user