maybe this works
This commit is contained in:
parent
97dfeae99f
commit
9aa834c268
@ -1,6 +1,7 @@
|
|||||||
using Ryujinx.Common.Configuration.Hid;
|
using Ryujinx.Common.Configuration.Hid;
|
||||||
using Ryujinx.Common.Configuration.Hid.Controller;
|
using Ryujinx.Common.Configuration.Hid.Controller;
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
|
using Ryujinx.HLE.HOS.Services.Hid;
|
||||||
using SDL2;
|
using SDL2;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -87,7 +88,7 @@ namespace Ryujinx.Input.SDL2
|
|||||||
Features = GetFeaturesFlag();
|
Features = GetFeaturesFlag();
|
||||||
_triggerThreshold = 0.0f;
|
_triggerThreshold = 0.0f;
|
||||||
|
|
||||||
if (Features.HasFlag(GamepadFeaturesFlag.Led))
|
//if (Features.HasFlag(GamepadFeaturesFlag.Led))
|
||||||
{
|
{
|
||||||
SetLedColor();
|
SetLedColor();
|
||||||
}
|
}
|
||||||
@ -110,7 +111,8 @@ namespace Ryujinx.Input.SDL2
|
|||||||
public void SetLedColor()
|
public void SetLedColor()
|
||||||
{
|
{
|
||||||
//IAMTOOTIREDWILLCONTINUETOMORROWSORRY
|
//IAMTOOTIREDWILLCONTINUETOMORROWSORRY
|
||||||
uint rawColor = 110;
|
//uint rawColor = 0;
|
||||||
|
uint rawColor = _configuration.Led.LedColor;
|
||||||
byte red = (byte)(rawColor >> 16);
|
byte red = (byte)(rawColor >> 16);
|
||||||
byte green = (byte)(rawColor >> 8);
|
byte green = (byte)(rawColor >> 8);
|
||||||
byte blue = (byte)(rawColor % 256);
|
byte blue = (byte)(rawColor % 256);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user