@@ -29,15 +29,15 @@ namespace ams::controller {
29
29
30
30
const RGBColour player_led_colours[] = {
31
31
// Same colours used by PS4
32
- {0x00 , 0x00 , 0x40 }, // blue
33
- {0x40 , 0x00 , 0x00 }, // red
34
- {0x00 , 0x40 , 0x00 }, // green
35
- {0x20 , 0x00 , 0x20 }, // pink
32
+ {0x00 , 0x00 , 0x04 }, // blue
33
+ {0x04 , 0x00 , 0x00 }, // red
34
+ {0x00 , 0x04 , 0x00 }, // green
35
+ {0x02 , 0x00 , 0x02 }, // pink
36
36
// New colours for controllers 5-8
37
- {0x00 , 0x20 , 0x20 }, // cyan
38
- {0x30 , 0x10 , 0x00 }, // orange
39
- {0x20 , 0x20 , 0x00 }, // yellow
40
- {0x10 , 0x00 , 0x30 } // purple
37
+ {0x00 , 0x02 , 0x02 }, // cyan
38
+ {0x03 , 0x01 , 0x00 }, // orange
39
+ {0x02 , 0x02 , 0x00 }, // yellow
40
+ {0x01 , 0x00 , 0x03 } // purple
41
41
};
42
42
43
43
}
@@ -74,7 +74,9 @@ namespace ams::controller {
74
74
Result Dualshock4Controller::SetLightbarColour (RGBColour colour) {
75
75
mitm::ControllerProfileConfig config;
76
76
mitm::GetCustomIniConfig (&this ->Address (), &config);
77
- m_led_colour = config.misc .disable_sony_leds ? led_disable : colour;
77
+ m_led_colour.r = colour.r * config.misc .sony_led_brightness ;
78
+ m_led_colour.g = colour.g * config.misc .sony_led_brightness ;
79
+ m_led_colour.b = colour.b * config.misc .sony_led_brightness ;
78
80
return this ->PushRumbleLedState ();
79
81
}
80
82
0 commit comments