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

Summary: Rudimentary touchscreen support in SDL_evdev (supports Raspberry Pi)
Product: SDL Reporter: tvc <me>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: evdev touchscreen patch against hg commit b0b12a3c817c

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