We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3644

Summary: Wayland touch event support
Product: SDL Reporter: Moritz Bitsch <moritz.bitsch>
Component: videoAssignee: 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

Description Moritz Bitsch 2017-05-09 07:24:31 UTC
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.
Comment 1 Alex Szpakowski 2017-07-14 02:20:47 UTC
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.
Comment 2 Sam Lantinga 2017-08-11 18:15:55 UTC
Moritz, can you take care of normalizing the coordinates and testing your patch?

Thanks!
Comment 3 Moritz Bitsch 2017-08-21 09:03:47 UTC
Created attachment 2867 [details]
Wayland touch event patch with noramlized coordinates

Updated patch to normalize coordinates and tested with wayland on multitouch touchscreen.
Comment 4 Sam Lantinga 2017-08-21 18:19:53 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/5893a480c519