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 4174

Summary: [patch] Add touchscreen mouse emulation and pressure support to SDL_evdev
Product: SDL Reporter: Zack Middleton (zturtleman) <zack>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.0   
Hardware: ARM   
OS: Linux   
Attachments: evdev: ignore BTN_TOUCH, support SDL_TOUCH_MOUSEID and pressure.

Description Zack Middleton (zturtleman) 2018-05-25 21:41:56 UTC
Created attachment 3248 [details]
evdev: ignore BTN_TOUCH, support SDL_TOUCH_MOUSEID and pressure.

Silence warning about EVDEV KeyCode 330 (BTN_TOUCH) when pressing or releasing touchscreen.[1]
Add support for touchscreen mouse emulation using SDL_TOUCH_MOUSEID to SDL_evdev.
Add unverified support for touchscreen pressure to SDL_evdev.

Tested on Raspbian Stretch with the official Raspberry Pi 7" touchscreen (no pressure support).

[1] INFO: The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL forums/mailing list <https://discourse.libsdl.org/> EVDEV KeyCode 330
Comment 1 Ryan C. Gordon 2019-01-15 00:43:59 UTC
This patch is now https://hg.libsdl.org/SDL/rev/f100ca4dd31e, thanks!

--ryan.