@@ -29,15 +29,15 @@ namespace ams::controller {
2929
3030 const RGBColour player_led_colours[] = {
3131 // 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
3636 // 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
4141 };
4242
4343 }
@@ -74,7 +74,9 @@ namespace ams::controller {
7474 Result Dualshock4Controller::SetLightbarColour (RGBColour colour) {
7575 mitm::ControllerProfileConfig config;
7676 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 ;
7880 return this ->PushRumbleLedState ();
7981 }
8082
0 commit comments