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

(forgot the additional "relative" mouse implementation with last commit)
This commit is contained in:
Brad Smith 2019-01-26 21:04:07 -05:00 committed by GitHub
parent 01c3f40f1d
commit 20f0783a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1264,7 +1264,7 @@ void GetMouseRelative(int32 (&md)[3])
md[0] = dx;
md[1] = dy;
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 DumpSubtitles(HWND hWnd)