Improve VirtualKeyCode to ToWindowsInput mapping

This commit is contained in:
Kamil Trzciński 2022-12-12 11:44:29 +01:00
parent 26171639eb
commit 801f32a719
3 changed files with 19 additions and 16 deletions

View file

@ -20,18 +20,6 @@ namespace SteamController.Devices
{
}
public bool this[ProfilesSettings.VirtualKeyCode key]
{
get { return this[(VirtualKeyCode)key]; }
set { this[(VirtualKeyCode)key] = value; }
}
public bool this[System.Windows.Input.Key key]
{
get { return this[(VirtualKeyCode)System.Windows.Input.KeyInterop.VirtualKeyFromKey(key)]; }
set { this[(VirtualKeyCode)System.Windows.Input.KeyInterop.VirtualKeyFromKey(key)] = value; }
}
public bool this[System.Windows.Forms.Keys key]
{
get