Skip to content

Commit

Permalink
Fix copy paste error in MOUSE5 rawinput handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kugelrund committed Nov 14, 2021
1 parent 8b942ca commit fce3452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/win32/win_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fce3452

Please sign in to comment.