diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index 37291a21..6ab81e43 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -1224,7 +1224,7 @@ void GetMouseData(uint32 (&md)[3]) } md[0] += VNSCLIP; md[1] += FSettings.FirstSLine; - md[2] = ((mouseb == MK_LBUTTON) ? 1 : 0) | (( mouseb == MK_RBUTTON ) ? 2 : 0); + md[2] = ((mouseb & MK_LBUTTON) ? 1 : 0) | (( mouseb & MK_RBUTTON ) ? 2 : 0); } void GetMouseRelative(int32 (&md)[3]) @@ -3234,4 +3234,4 @@ void SaveSnapshotAs() if(GetSaveFileName(&ofn)) FCEUI_SetSnapshotAsName(nameo); FCEUI_SaveSnapshotAs(); -} \ No newline at end of file +}