瀏覽代碼

Fix mistyped output report message for Steam Controller

This caused hiccups in BlueZ BT driver for Linux
Sam Lantinga 3 月之前
父節點
當前提交
bb3c61390a
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/joystick/hidapi/steam/controller_structs.h

+ 1 - 2
src/joystick/hidapi/steam/controller_structs.h

@@ -179,9 +179,8 @@ typedef struct
     uint16_t on_us;
     uint16_t off_us;
     uint16_t repeat_count;
-    uint16_t gain_db; 
 } MsgHapticPulse;
-#define HID_HAPTIC_PULSE_OUTPUT_REPORT_BYTES 10
+#define HID_HAPTIC_PULSE_OUTPUT_REPORT_BYTES 8
 
 typedef struct
 {