mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Merge pull request #12493 from endrift/fix-deck
Steam Deck: Pad out feature report to 64 bytes
This commit is contained in:
commit
c3b8aa1fe5
@ -288,14 +288,13 @@ Core::DeviceRemoval Device::UpdateInput()
|
|||||||
if (++m_gyro_reenable == 250)
|
if (++m_gyro_reenable == 250)
|
||||||
{
|
{
|
||||||
m_gyro_reenable = 0;
|
m_gyro_reenable = 0;
|
||||||
// Using names from Valve's contribution to SDL for the Steam Controller
|
// Using names from Valve's contribution to SDL this packet decodes as:
|
||||||
// (and assuming this has not changed for the Deck), this packet decodes as:
|
|
||||||
// 0x00 = report ID
|
// 0x00 = report ID
|
||||||
// 0x87 = ID_SET_SETTINGS_VALUES
|
// 0x87 = ID_SET_SETTINGS_VALUES
|
||||||
// 0x03 = payload length
|
// 0x03 = payload length
|
||||||
// 0x30 = SETTING_GYRO_MODE
|
// 0x30 = SETTING_IMU_MODE
|
||||||
// 0x18 0x00 = SETTING_GYRO_MODE_SEND_RAW_ACCEL | SETTING_GYRO_MODE_SEND_RAW_GYRO
|
// 0x18 0x00 = SETTING_GYRO_MODE_SEND_RAW_ACCEL | SETTING_GYRO_MODE_SEND_RAW_GYRO
|
||||||
const unsigned char pkt[] = {0x00, 0x87, 0x03, 0x30, 0x18, 0x00};
|
const unsigned char pkt[65] = {0x00, 0x87, 0x03, 0x30, 0x18, 0x00};
|
||||||
hid_send_feature_report(m_device, pkt, sizeof(pkt));
|
hid_send_feature_report(m_device, pkt, sizeof(pkt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user