Add option to change controller LED color #572

Merged
Otozinclus merged 33 commits from Change-Controller-LED-Color into master 2025-01-24 20:47:36 +00:00
Showing only changes of commit 9aa834c268 - Show all commits

@ -1,6 +1,7 @@
using Ryujinx.Common.Configuration.Hid;
using Ryujinx.Common.Configuration.Hid.Controller;
using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Services.Hid;
using SDL2;
using System;
using System.Collections.Generic;
@ -87,7 +88,7 @@ namespace Ryujinx.Input.SDL2
Features = GetFeaturesFlag();
_triggerThreshold = 0.0f;
if (Features.HasFlag(GamepadFeaturesFlag.Led))
//if (Features.HasFlag(GamepadFeaturesFlag.Led))
{
SetLedColor();
}
@ -110,7 +111,8 @@ namespace Ryujinx.Input.SDL2
public void SetLedColor()
{
//IAMTOOTIREDWILLCONTINUETOMORROWSORRY
uint rawColor = 110;
//uint rawColor = 0;
uint rawColor = _configuration.Led.LedColor;
byte red = (byte)(rawColor >> 16);
byte green = (byte)(rawColor >> 8);
byte blue = (byte)(rawColor % 256);