| Summary: | Wayland touch event support | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Moritz Bitsch <moritz.bitsch> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | amaranth72 |
| Version: | 2.0.5 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: |
Wayland touch event patch
Wayland touch event patch with noramlized coordinates |
||
Touch coordinate are supposed to be normalized within [0, 1] in the window (for direct finger touches), or normalized within [0, 1] in the touch device (for indirect touches, e.g. trackpads). The X11 backend does pixel coordinates right now I think, but that's a bug. All of the other backends do proper normalized coordinates. Moritz, can you take care of normalizing the coordinates and testing your patch? Thanks! Created attachment 2867 [details]
Wayland touch event patch with noramlized coordinates
Updated patch to normalize coordinates and tested with wayland on multitouch touchscreen.
Added, thanks! https://hg.libsdl.org/SDL/rev/5893a480c519 |
Created attachment 2729 [details] Wayland touch event patch Hello, Attached is a small patch which enables multitouch events on Wayland. Please review and release the changes as per your policy.