Fix virtual key check missing

This commit is contained in:
Infi
2024-07-15 12:27:08 +02:00
parent 764d608663
commit 6f1a3fc548
2 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -315,9 +315,7 @@ internal unsafe class KeybindManager : IDisposable {
private void UpdateKeybinds()
{
foreach (var name in KeybindsToIntercept.Keys)
{
Keybinds[name] = GetKeybind(name);
}
}
private static ModifierFlag GetModifiers(KeyboardSource source)
@@ -348,6 +346,10 @@ internal unsafe class KeybindManager : IDisposable {
{
if (key == VirtualKey.NO_KEY)
return false;
if (!Plugin.KeyState.IsVirtualKeyValid(key))
return false;
if (source == KeyboardSource.Game)
return Plugin.KeyState[key];