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 4665

Summary: [patch] Add support for single touch evdev devices
Product: SDL Reporter: Jan Martin Mikkelsen <janm>
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: Patch supporting single touch evdev

Description Jan Martin Mikkelsen 2019-06-12 09:12:33 UTC
Created attachment 3821 [details]
Patch supporting single touch evdev

The attached patch adds support for single-touch evdev devices.

These devices report ABS_X, ABS_Y and BTN_TOUCH events. This patch sets them up as MT devices with a single slot and handles the appropriate messages.
Comment 1 Sam Lantinga 2019-06-12 14:56:16 UTC
Patch has been added, thanks!
https://hg.libsdl.org/SDL/rev/5b0bc0ed588a

What are some examples of devices like this?
Comment 2 Jan Martin Mikkelsen 2019-06-13 07:01:38 UTC
The classical one is the ELO Touchscreen. It's in lots of different devices, especially point-of-sale terminals. We're using this one for industrial applications with an in-house single-touch evdev driver:

http://www.tipro.net/ecatalogue/new-befree22/

The FreeBSD eGalax touchscreen driver also provides a single-touch interface when compiled for evdev. I'm not sure about drivers in the Linux tree; I'm not in that ecosystem.
Comment 3 Sam Lantinga 2019-06-14 00:11:22 UTC
Got it, thanks!