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 - [patch] Add touchscreen mouse emulation and pressure support to SDL_evdev
Summary: [patch] Add touchscreen mouse emulation and pressure support to SDL_evdev
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: ARM Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-25 21:41 UTC by Zack Middleton (zturtleman)
Modified: 2019-01-15 00:43 UTC (History)
1 user (show)

See Also:


Attachments
evdev: ignore BTN_TOUCH, support SDL_TOUCH_MOUSEID and pressure. (8.26 KB, patch)
2018-05-25 21:41 UTC, Zack Middleton (zturtleman)
Details | Diff

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