Browse Source

Enable the 5th player LED on the DualSense controller

Fixes https://github.com/libsdl-org/SDL/issues/5152
Sam Lantinga 1 năm trước cách đây
mục cha
commit
22016b4eae
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/joystick/hidapi/SDL_hidapi_ps5.c

+ 2 - 1
src/joystick/hidapi/SDL_hidapi_ps5.c

@@ -351,7 +351,8 @@ static void SetLightsForPlayerIndex(DS5EffectsState_t *effects, int player_index
         0x04,
         0x0A,
         0x15,
-        0x1B
+        0x1B,
+        0x1F
     };
 
     if (player_index >= 0) {