diff options
author | Mon ouïe <mon.ouie@gmail.com> | 2024-01-16 23:48:41 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-01-17 01:40:05 +0100 |
commit | 7c57c1e89942df1c1441c7fc0509d40096cf52eb (patch) | |
tree | a970be67a74d4d1e36472c1018179e5c4995d2bc /src | |
parent | ed44145fe7db7e3adabdd09a79e21b3fdf84687d (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 ); } } |