mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-04 13:57:39 +00:00
Make KeyboardController to generate KeyRepeats
This commit is contained in:
parent
6da5a9796c
commit
aafe040e12
3 changed files with 55 additions and 49 deletions
|
|
@ -75,22 +75,11 @@ namespace SteamController.Profiles
|
|||
|
||||
private void EmulateDPadArrows(Context c)
|
||||
{
|
||||
#if true
|
||||
if (c.Steam.BtnDpadLeft.HoldRepeat(Consumed))
|
||||
c.Keyboard.KeyPress(VirtualKeyCode.LEFT);
|
||||
if (c.Steam.BtnDpadRight.HoldRepeat(Consumed))
|
||||
c.Keyboard.KeyPress(VirtualKeyCode.RIGHT);
|
||||
if (c.Steam.BtnDpadUp.HoldRepeat(Consumed))
|
||||
c.Keyboard.KeyPress(VirtualKeyCode.UP);
|
||||
if (c.Steam.BtnDpadDown.HoldRepeat(Consumed))
|
||||
c.Keyboard.KeyPress(VirtualKeyCode.DOWN);
|
||||
#else
|
||||
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;
|
||||
c.Keyboard[VirtualKeyCode.DOWN] = c.Steam.BtnDpadDown;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue