Skip to content

Commit 1296270

Browse files
committed
Fixed HIDAPI PS5 Bluetooth report format
1 parent 63c0650 commit 1296270

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/joystick/hidapi/SDL_hidapi_ps5.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static void HIDAPI_DriverPS5_SetEnhancedModeAvailable(SDL_DriverPS5_Context *ctx
823823
if (ctx->sensors_supported) {
824824
// Standard DualSense sensor update rate is 250 Hz over USB
825825
float update_rate = 250.0f;
826-
826+
827827
if (ctx->device->is_bluetooth) {
828828
// Bluetooth sensor update rate appears to be 1000 Hz
829829
update_rate = 1000.0f;
@@ -1066,10 +1066,11 @@ static bool HIDAPI_DriverPS5_InternalSendJoystickEffect(SDL_DriverPS5_Context *c
10661066

10671067
if (ctx->device->is_bluetooth) {
10681068
data[0] = k_EPS5ReportIdBluetoothEffects;
1069-
data[1] = 0x02; // Magic value
1069+
data[1] = 0x00; // Tag and sequence
1070+
data[2] = 0x10; // Magic value
10701071

10711072
report_size = 78;
1072-
offset = 2;
1073+
offset = 3;
10731074
} else {
10741075
data[0] = k_EPS5ReportIdUsbEffects;
10751076

0 commit comments

Comments
 (0)