mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 06:15:26 +00:00
Fix double presses of A(RETURN)/B(BACKSPACE) in Desktop mode
This commit is contained in:
parent
c243d0dd69
commit
c72128fc5c
2 changed files with 3 additions and 9 deletions
|
|
@ -41,14 +41,8 @@ namespace SteamController.Profiles
|
|||
EmulateMouseOnRStick(c);
|
||||
EmulateDPadArrows(c);
|
||||
|
||||
if (c.Steam.BtnA.Pressed())
|
||||
{
|
||||
c.Keyboard.KeyPress(VirtualKeyCode.RETURN);
|
||||
}
|
||||
if (c.Steam.BtnB.Pressed())
|
||||
{
|
||||
c.Keyboard.KeyPress(VirtualKeyCode.BACK);
|
||||
}
|
||||
c.Keyboard[VirtualKeyCode.RETURN] = c.Steam.BtnA;
|
||||
c.Keyboard[VirtualKeyCode.BACK] = c.Steam.BtnB;
|
||||
|
||||
return Status.Continue;
|
||||
}
|
||||
|
|
@ -67,7 +61,6 @@ namespace SteamController.Profiles
|
|||
|
||||
private void EmulateDPadArrows(Context c)
|
||||
{
|
||||
c.Keyboard[VirtualKeyCode.RETURN] = c.Steam.BtnA;
|
||||
c.Keyboard[VirtualKeyCode.LEFT] = c.Steam.BtnDpadLeft;
|
||||
c.Keyboard[VirtualKeyCode.RIGHT] = c.Steam.BtnDpadRight;
|
||||
c.Keyboard[VirtualKeyCode.UP] = c.Steam.BtnDpadUp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue