mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-04 19:55:19 +00:00
Added SDL_SendGamepadEffect() support for the new Steam Controller
This commit is contained in:
parent
c247f06f01
commit
4884dbbe56
1 changed files with 7 additions and 0 deletions
|
|
@ -475,6 +475,13 @@ static bool HIDAPI_DriverSteamTriton_SetJoystickLED(SDL_HIDAPI_Device *device, S
|
|||
|
||||
static bool HIDAPI_DriverSteamTriton_SendJoystickEffect(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, const void *data, int size)
|
||||
{
|
||||
if (size == HID_FEATURE_REPORT_BYTES) {
|
||||
int rc = SDL_hid_send_feature_report(device->dev, data, size);
|
||||
if (rc != size) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return SDL_Unsupported();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue