@@ -20,12 +20,17 @@ force_inline void IDENTIFYGAMEPADS_MainFreeze_MenuPtrOptions(struct RectMenu* me
2020 {
2121 struct ControllerPacket * ptrControllerPacket = sdata -> gGamepads -> gamepad [i ].ptrControllerPacket ;
2222
23+ // === THIS IS NOT CORRECT ===
24+ // Since discovering plugged enum, this is not right
25+ // Last checked Mar 27 2025, this is NOT on buildList,
26+ // need to double-check with ghidra, what should this do?
27+
2328 // if gamepad is not an "analog controller", as CTR uses to refer to jogcons and negcons
2429 if
2530 (
2631 (
2732 (ptrControllerPacket == 0 ) ||
28- (ptrControllerPacket -> isControllerConnected != 0 )
33+ (ptrControllerPacket -> plugged != PLUGGED )
2934 ) ||
3035
3136 (
@@ -354,16 +359,14 @@ force_inline void DISPLAYRECTMENU_MainFreeze_MenuPtrOptions(struct RectMenu* men
354359
355360 for (int i = 0 ; i < gamepad -> numGamepads ; i ++ )
356361 {
357- int gamepadConnected = false;
358362 int dualShockRowColor = ORANGE ;
359363 int currPad = gamepad -> gamepadId [i ];
360364
361365 struct ControllerPacket * ptrControllerPacket =
362366 sdata -> gGamepads -> gamepad [currPad ].ptrControllerPacket ;
363367
364- if (ptrControllerPacket == 0 || ptrControllerPacket -> isControllerConnected != 0 )
368+ if (ptrControllerPacket == 0 || ptrControllerPacket -> plugged != PLUGGED )
365369 {
366- gamepadConnected = true;
367370 dualShockRowColor = GRAY ;
368371 }
369372
@@ -386,8 +389,7 @@ force_inline void DISPLAYRECTMENU_MainFreeze_MenuPtrOptions(struct RectMenu* men
386389 int boolDisabled =
387390 (gGT -> gameMode1 & data .gGT_gameMode1_VibPerPlayer [currPad ]) == 0 ;
388391
389- dualShockRowColor = GRAY ;
390- if (!gamepadConnected )
392+ if (dualShockRowColor != GRAY )
391393 {
392394 // RED: 3
393395 // WHITE: 4
0 commit comments