windows mouse left/right buttons should be independent, not XOR

This commit is contained in:
Brad Smith 2019-01-26 20:46:58 -05:00 committed by GitHub
parent cddb8af1a2
commit 01c3f40f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}
}