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 3157 - Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi)
Summary: Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi)
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: All Linux
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-19 15:28 UTC by tvc
Modified: 2016-10-01 20:52 UTC (History)
0 users

See Also:


Attachments
evdev touchscreen patch against hg commit b0b12a3c817c (53.40 KB, patch)
2015-10-19 15:28 UTC, tvc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tvc 2015-10-19 15:28:26 UTC
Created attachment 2288 [details]
evdev touchscreen patch against hg commit b0b12a3c817c

I've spent the last few days implementing touchscreen support in core/linux/SDL_evdev.c. It's fairly rudimentary at the moment, as can be seen from the multiple TODO's and FIXME's littered throughout, but I'm mainly submitting this patch for review. I've tested this patch on my Raspberry Pi 2 with the official touchscreen and it works fantastically, reporting all 10 multitouch points. I'm happy to work on this further, the evdev logic also needs a bit of a cleanup I think (I may have included a few changes). But if it's good enough in its current state to be committed then I'm sure there'd be plenty of people pleased, as currently the only other framework/library that supports touchscreens on the Raspberry Pi is Kivy.

Cheers,
tvc
Comment 1 Sam Lantinga 2016-10-01 20:52:24 UTC
This is very cool. Please keep iterating and submitting patches!
https://hg.libsdl.org/SDL/rev/0f79dd727ed6