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 - [patch] Add support for single touch evdev devices
Summary: [patch] Add support for single touch evdev devices
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: 2019-06-12 09:12 UTC by Jan Martin Mikkelsen
Modified: 2019-06-14 00:11 UTC (History)
0 users

See Also:


Attachments
Patch supporting single touch evdev (4.56 KB, patch)
2019-06-12 09:12 UTC, Jan Martin Mikkelsen
Details | Diff

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