From fce34523456e07e0254aed0a3a66c32181ac7a42 Mon Sep 17 00:00:00 2001 From: kugelrund <6236137+kugelrund@users.noreply.github.com> Date: Sun, 14 Nov 2021 22:53:14 +0100 Subject: [PATCH] Fix copy paste error in MOUSE5 rawinput handling --- code/win32/win_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/win32/win_input.cpp b/code/win32/win_input.cpp index acc68c7..b93fbb1 100644 --- a/code/win32/win_input.cpp +++ b/code/win32/win_input.cpp @@ -543,7 +543,7 @@ void IN_RawMouse( RAWMOUSE* state ) if (buttonflags & RI_MOUSE_BUTTON_4_UP) Sys_QueEvent( g_wv.sysMsgTime, SE_KEY, A_MOUSE4, qfalse, 0, NULL ); if (buttonflags & RI_MOUSE_BUTTON_5_DOWN) Sys_QueEvent( g_wv.sysMsgTime, SE_KEY, A_MOUSE5, qtrue, 0, NULL ); - if (buttonflags & RI_MOUSE_BUTTON_5_UP) Sys_QueEvent( g_wv.sysMsgTime, SE_KEY, A_MOUSE5, qtrue, 0, NULL ); + if (buttonflags & RI_MOUSE_BUTTON_5_UP) Sys_QueEvent( g_wv.sysMsgTime, SE_KEY, A_MOUSE5, qfalse, 0, NULL ); // to mirror same behaviour as win32 mouse input, set cursor to middle. Avoids cursor from // moving out of window if there is an overlapping window like the taskbar or something.