Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

Keep raw-input hook message pump awake for pending input

Veyra Goal Agent1f57216911aa
diff --git a/include/veyra/ui/GameHotkeys.h b/include/veyra/ui/GameHotkeys.h
index 73e9f36c..ecf04c95 100644
--- a/include/veyra/ui/GameHotkeys.h
+++ b/include/veyra/ui/GameHotkeys.h
@@ -87,7 +87,10 @@ public:
const HHOOK hook = SetWindowsHookExW(WH_KEYBOARD_LL, callback, GetModuleHandleW(nullptr), 0);
running_.store(hook != nullptr); ready.set_value(hook != nullptr);
if (hook) {
- while (MsgWaitForMultipleObjects(1, &stopEvent_, FALSE, INFINITE, QS_ALLINPUT) == WAIT_OBJECT_0 + 1) {
+ // Raw-input/low-level-hook notifications can already have
+ // been observed by PeekMessage without being removed. Wake
+ // for input still available, not only a newly changed bit.
+ while (MsgWaitForMultipleObjectsEx(1, &stopEvent_, INFINITE, QS_ALLINPUT, MWMO_INPUTAVAILABLE) == WAIT_OBJECT_0 + 1) {
MSG msg; while (PeekMessageW(&msg, nullptr, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessageW(&msg); }
}
UnhookWindowsHookEx(hook);