Quick hack to avoid unthrottled getting stuck when alt-tabbing.

Assumes the default keymap of course but shouldn't really have any adverse
effects if you have remapped your controls.
This commit is contained in:
Henrik Rydgard 2013-10-31 00:34:09 +01:00
parent b9c908ba3f
commit 65baad70ac

View file

@ -1074,6 +1074,16 @@ namespace MainWindow
Core_EnableStepping(pause);
}
}
if (wParam == WA_INACTIVE) {
// Force-release TAB, which is the most annoying one when alt tabbing
// This isn't exactly a correct solution but will fix this annoyance for many.
KeyInput key;
key.deviceId = DEVICE_ID_KEYBOARD;
key.keyCode = NKCODE_TAB;
key.flags = KEY_UP;
NativeKey(key);
}
}
break;