mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-02 02:32:26 -07:00
misc: Move configuration management to the Ryujinx project (#2269)
* Decouple configuration from Ryujinx.HLE and Ryujinx.Input * Move Configuration to the Ryujinx project
This commit is contained in:
@@ -65,7 +65,7 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||
Npads = new NpadDevices(_device, true);
|
||||
}
|
||||
|
||||
internal void RefreshInputConfig(List<InputConfig> inputConfig)
|
||||
public void RefreshInputConfig(List<InputConfig> inputConfig)
|
||||
{
|
||||
ControllerConfig[] npadConfig = new ControllerConfig[inputConfig.Count];
|
||||
|
||||
@@ -78,11 +78,6 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
||||
_device.Hid.Npads.Configure(npadConfig);
|
||||
}
|
||||
|
||||
internal void RefreshInputConfigEvent(object _, ReactiveEventArgs<List<InputConfig>> args)
|
||||
{
|
||||
RefreshInputConfig(args.NewValue);
|
||||
}
|
||||
|
||||
public ControllerKeys UpdateStickButtons(JoystickPosition leftStick, JoystickPosition rightStick)
|
||||
{
|
||||
const int stickButtonThreshold = short.MaxValue / 2;
|
||||
|
Reference in New Issue
Block a user