mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-12 23:03:37 +00:00
Updated Steam Controller packet handling
This commit is contained in:
@@ -386,6 +386,7 @@ static bool HIDAPI_DriverSteamTriton_UpdateDevice(SDL_HIDAPI_Device *device)
|
||||
|
||||
switch (data[0]) {
|
||||
case ID_TRITON_CONTROLLER_STATE:
|
||||
case ID_TRITON_CONTROLLER_STATE_NO_QUATERNION:
|
||||
if (!joystick) {
|
||||
HIDAPI_DriverSteamTriton_SetControllerConnected(device, true);
|
||||
if (device->num_joysticks > 0) {
|
||||
|
||||
@@ -554,6 +554,7 @@ enum ETritonReportIDTypes
|
||||
{
|
||||
ID_TRITON_CONTROLLER_STATE = 0x42,
|
||||
ID_TRITON_BATTERY_STATUS = 0x43,
|
||||
ID_TRITON_CONTROLLER_STATE_NO_QUATERNION = 0x45,
|
||||
ID_TRITON_WIRELESS_STATUS_X = 0x46,
|
||||
ID_TRITON_WIRELESS_STATUS = 0x79,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user