mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-05-05 04:42:17 +00:00
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. (cherry picked from commit d747daf03d3210a794d609b8cc662f28beaedaf6)
This commit is contained in:
parent
b6e97d9ff0
commit
bbe4d693eb
|
@ -853,7 +853,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
SDL_MouseID mouseID;
|
SDL_MouseID mouseID;
|
||||||
RAWMOUSE *rawmouse;
|
RAWMOUSE *rawmouse;
|
||||||
if (SDL_GetNumTouchDevices() > 0 &&
|
if (SDL_GetNumTouchDevices() > 0 &&
|
||||||
(GetMouseMessageSource() == SDL_MOUSE_EVENT_SOURCE_TOUCH || (GetMessageExtraInfo() & 0x82) == 0x82)) {
|
(GetMouseMessageSource() == SDL_MOUSE_EVENT_SOURCE_TOUCH || (GetMessageExtraInfo() & 0x80) == 0x80)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* We do all of our mouse state checking against mouse ID 0
|
/* We do all of our mouse state checking against mouse ID 0
|
||||||
|
|
Loading…
Reference in a new issue