| Summary: | SDL_SetRelativeMouseMode ignores SDL_TOUCH_MOUSEID | ||
|---|---|---|---|
| Product: | SDL | Reporter: | RobLM <rob.l.molenaar> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann |
| Version: | 2.0.3 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS (All) | ||
| Attachments: | First patch to preserve mouse ID when warping mouse | ||
|
Description
RobLM
2015-04-07 14:27:44 UTC
Created attachment 2112 [details]
First patch to preserve mouse ID when warping mouse
Here's a first patch trying to solve the issue by preserving the mouse ID between SDL_SendMouseMotion() and SDL_WarpMouseInWindow().
I thought about this some more. Maybe a better solution would be to not generate relative mouse events at all for SDL-originated mouse warps, because they are not actual (physical) relative mouse motions. Yes, I think we don't want relative motion at all for warps. I'll have to think about how we want to implement this. This is fixed in a much better way now - you won't get large relative motion jumps when fingers touch down on iOS. https://hg.libsdl.org/SDL/rev/9fc2e83124ba Fixed! |