mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
33f2e1d4b7
## Link to GitHub Issue or related Pull Request, if one exists Fixes #562 ## Description of change ### rawinput touch fixes In rawinput touch handler, if the mouse events (`WM_LBUTTONDOWN`, `WM_MOUSEMOVE`, `WM_LBUTTONUP`) originated from a touch screen, drop them on the floor instead of treating them as touch events. This is an attempt to fix phantom touch issues we see with some screens. Fix another issue where, if mouse is clicked inside the window, and then dragged outside the window and button is released, touch point (id 0) continues to be held. ### wintouchemu fixes If we detected a touch input recently (500ms), ignore new mouse clicks. This isn't perfect, but hopefully it helps with filtering out mouse clicks originating from touch screens. Also, switch over to detecting the primary mouse button correctly, not just the left mouse button. ### notes Future investigation: are there really touchscreens that report a mouse HID capability & insert mouse events? We could have a way to filter them at rawinput level but it'll be ugly. ## Testing Tried jubeat, beatstream..