| Summary: | SDL_FINGERDOWN gives wrong cursor position on MultiTouch,OSX | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Denis <intraden> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | CC: | amaranth72, courteauxmartijn |
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Mac OS X 10.11 | ||
|
Description
Denis
2016-05-28 19:04:53 UTC
You can get the mouse cursor position via the SDL_MOUSEMOTION, SDL_MOUSEBUTTONDOWN, or SDL_MOUSEBUTTONUP events, or the SDL_GetMouseState function. (In reply to Alex Szpakowski from comment #1) > You can get the mouse cursor position via the SDL_MOUSEMOTION, > SDL_MOUSEBUTTONDOWN, or SDL_MOUSEBUTTONUP events, or the SDL_GetMouseState > function. What if I need to use multiple finger gestures on my macbook? Multi-finger trackpad gestures don't modify the mouse position, so you can just use the touch APIs. The touch coordinates for trackpads and other non-touchscreen devices don't correspond to specific pixels on the screen, since they aren't touch screens. It would be nice to be able to query whether a touch device is a touchscreen (direct touch input) or not (indirect touch input), but that's a somewhat separate issue. |