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 - Wayland touch event support
Summary: Wayland touch event support
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.5
Hardware: All Linux
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-09 07:24 UTC by Moritz Bitsch
Modified: 2017-08-21 18:19 UTC (History)
1 user (show)

See Also:


Attachments
Wayland touch event patch (4.62 KB, patch)
2017-05-09 07:24 UTC, Moritz Bitsch
Details | Diff
Wayland touch event patch with noramlized coordinates (5.32 KB, patch)
2017-08-21 09:03 UTC, Moritz Bitsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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