Use correct touch check flag

Matches the one in `GetMouseMessageSource()`.
From my testing on Windows 11, the lower 8 bits in touch events cycle
trough the values 0x8c-0x95 in order.
This commit is contained in:
Susko3 2023-12-26 21:08:51 +01:00 committed by Sam Lantinga
parent a961066d0b
commit d747daf03d
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
SDL_MouseID mouseID;
RAWMOUSE *rawmouse;
if (SDL_TouchDevicesAvailable() &&
(GetMouseMessageSource() == SDL_MOUSE_EVENT_SOURCE_TOUCH || (GetMessageExtraInfo() & 0x82) == 0x82)) {
(GetMouseMessageSource() == SDL_MOUSE_EVENT_SOURCE_TOUCH || (GetMessageExtraInfo() & 0x80) == 0x80)) {
break;
}
/* We do all of our mouse state checking against mouse ID 0