mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-09 04:09:12 +00:00
Address Feedback
This commit is contained in:
parent
96aa4618ce
commit
d5cc79f04a
1 changed files with 12 additions and 12 deletions
|
@ -252,24 +252,24 @@ namespace Ryujinx
|
||||||
Device.Hid.SetTouchPoints();
|
Device.Hid.SetTouchPoints();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (KeyValuePair<HidControllerId, HidEmulatedDevices.HostDevice> entry in HidEmulatedDevices.Devices)
|
foreach (KeyValuePair<HidControllerId, HidEmulatedDevices.HostDevice> Entry in HidEmulatedDevices.Devices)
|
||||||
{
|
{
|
||||||
if (entry.Value != HidEmulatedDevices.HostDevice.None)
|
if (Entry.Value != HidEmulatedDevices.HostDevice.None)
|
||||||
{
|
{
|
||||||
bool IsKeyboard = entry.Value == HidEmulatedDevices.HostDevice.Keyboard;
|
bool IsKeyboard = Entry.Value == HidEmulatedDevices.HostDevice.Keyboard;
|
||||||
Device.Hid.SetJoyconButton(
|
Device.Hid.SetJoyconButton(
|
||||||
entry.Key,
|
Entry.Key,
|
||||||
(entry.Key == HidControllerId.CONTROLLER_HANDHELD) ? HidControllerLayouts.Handheld_Joined : HidControllerLayouts.Joined,
|
(Entry.Key == HidControllerId.CONTROLLER_HANDHELD) ? HidControllerLayouts.Handheld_Joined : HidControllerLayouts.Joined,
|
||||||
IsKeyboard ? CurrentButtonsKeyboard : CurrentButtonsGamePad[GetGamePadIndexFromHostDevice(entry.Value)],
|
IsKeyboard ? CurrentButtonsKeyboard : CurrentButtonsGamePad[GetGamePadIndexFromHostDevice(Entry.Value)],
|
||||||
IsKeyboard ? LeftJoystickKeyboard : LeftJoystickGamePad [GetGamePadIndexFromHostDevice(entry.Value)],
|
IsKeyboard ? LeftJoystickKeyboard : LeftJoystickGamePad [GetGamePadIndexFromHostDevice(Entry.Value)],
|
||||||
IsKeyboard ? RightJoystickKeyboard : RightJoystickGamePad [GetGamePadIndexFromHostDevice(entry.Value)]);
|
IsKeyboard ? RightJoystickKeyboard : RightJoystickGamePad [GetGamePadIndexFromHostDevice(Entry.Value)]);
|
||||||
|
|
||||||
Device.Hid.SetJoyconButton(
|
Device.Hid.SetJoyconButton(
|
||||||
entry.Key,
|
Entry.Key,
|
||||||
HidControllerLayouts.Main,
|
HidControllerLayouts.Main,
|
||||||
IsKeyboard ? CurrentButtonsKeyboard : CurrentButtonsGamePad[GetGamePadIndexFromHostDevice(entry.Value)],
|
IsKeyboard ? CurrentButtonsKeyboard : CurrentButtonsGamePad[GetGamePadIndexFromHostDevice(Entry.Value)],
|
||||||
IsKeyboard ? LeftJoystickKeyboard : LeftJoystickGamePad [GetGamePadIndexFromHostDevice(entry.Value)],
|
IsKeyboard ? LeftJoystickKeyboard : LeftJoystickGamePad [GetGamePadIndexFromHostDevice(Entry.Value)],
|
||||||
IsKeyboard ? RightJoystickKeyboard : RightJoystickGamePad [GetGamePadIndexFromHostDevice(entry.Value)]);
|
IsKeyboard ? RightJoystickKeyboard : RightJoystickGamePad [GetGamePadIndexFromHostDevice(Entry.Value)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue