From 7c57c1e89942df1c1441c7fc0509d40096cf52eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mon=20ou=C3=AFe?= Date: Tue, 16 Jan 2024 23:48:41 +0100 Subject: Fix reading overlay events from the wrong variable Would cause some events to be missed and other to be processed when they should not have been. --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 5afeef3..5b766f1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1574,9 +1574,8 @@ bool CMainApplication::HandleInput() } if (overlay_mode) { - vr::VREvent_t vrEvent; while( vr::VROverlay()->PollNextOverlayEvent( - overlay_handle, &vrEvent, sizeof( vrEvent ) ) ) { + overlay_handle, &event, sizeof( event ) ) ) { ProcessVREvent( event ); } } -- cgit v1.2.3