Setting Keyboard[KEY] = false and Mouse[KEY] = false does not cancel the press

This commit is contained in:
Kamil Trzciński 2022-11-28 11:40:31 +01:00
parent 370dd89750
commit 540e9ed758
3 changed files with 1 additions and 6 deletions

View file

@ -31,3 +31,4 @@ It does help this project on being supported.
- Fix delay in X360Rumble: Do not send repeated haptic if disabled
- Fix `AccessDenied` in Steam Detection
- Properly apply X360 mappings for Back Panel keys
- Setting `Keyboard[KEY] = false` and `Mouse[KEY] = false` does not cancel the press

View file

@ -36,10 +36,6 @@ namespace SteamController.Devices
var keyRepeat = lastKeyCodes.GetValueOrDefault(button) ?? new KeyRepeats(DateTime.Now.Add(FirstRepeat), 0);
keyCodes.Add(button, keyRepeat);
}
else
{
keyCodes.Remove(button);
}
}
}

View file

@ -65,8 +65,6 @@ namespace SteamController.Devices
{
if (value)
mouseButtons.Add(button);
else
mouseButtons.Remove(button);
}
}