mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 22:35:38 +00:00
Allow to Overwrite keyboard and mouse button state
This commit is contained in:
parent
801f32a719
commit
142b8cc2e9
2 changed files with 16 additions and 0 deletions
|
|
@ -114,6 +114,14 @@ namespace SteamController.Devices
|
|||
}
|
||||
}
|
||||
|
||||
public void Overwrite(VirtualKeyCode key, bool value)
|
||||
{
|
||||
if (value)
|
||||
this[key] = true;
|
||||
else
|
||||
keyCodes.Remove(key);
|
||||
}
|
||||
|
||||
public void KeyPress(params VirtualKeyCode[] keyCodes)
|
||||
{
|
||||
Safe(() => simulator.Keyboard.KeyPress(keyCodes));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue