diff options
| author | Vicki Pfau <vi@endrift.com> | 2024-01-09 20:49:38 -0800 |
|---|---|---|
| committer | Vicki Pfau <vi@endrift.com> | 2024-01-10 19:49:52 -0800 |
| commit | a8033f164bf9b3af81c7bf4f9da1d239b386c702 (patch) | |
| tree | eb2b5bb05320fcdeef8fd8241d43ab670cf80888 /Source/Core/InputCommon/ControllerInterface | |
| parent | 115ad825813d76e3ac8bd8aaab0d110c3fe378ad (diff) | |
Steam Deck: Pad out feature report to 64 bytes
Also update the names of the setting post-Steam Deck commits to SDL
Fixes https://bugs.dolphin-emu.org/issues/13412
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp b/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp index 7cd76d0710..2ffd741d01 100644 --- a/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp +++ b/Source/Core/InputCommon/ControllerInterface/SteamDeck/SteamDeck.cpp @@ -288,14 +288,13 @@ Core::DeviceRemoval Device::UpdateInput() if (++m_gyro_reenable == 250) { m_gyro_reenable = 0; - // Using names from Valve's contribution to SDL for the Steam Controller - // (and assuming this has not changed for the Deck), this packet decodes as: + // Using names from Valve's contribution to SDL this packet decodes as: // 0x00 = report ID // 0x87 = ID_SET_SETTINGS_VALUES // 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 - 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)); } |
