| Summary: | Add support for joysticks with integrated touchpads | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Frank <frank.praznik> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | amaranth72, rodrigo.alfenas |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | All | ||
| Attachments: |
Add touchpad support via the existing touch system
Add touchpad support with new events Add touchpad support with new events v2 |
||
|
Description
Frank
2014-09-27 18:35:42 UTC
Created attachment 1884 [details]
Add touchpad support via the existing touch system
Add patch #1
Created attachment 1885 [details]
Add touchpad support with new events
Created attachment 1886 [details]
Add touchpad support with new events v2
Fixed a parameter name in the second patch and added a check to make sure a finger index isn't negative.
*** Bug 2741 has been marked as a duplicate of this bug. *** The new Apple TV's remote can act like a joystick and includes a touch surface (although SDL doesn't support tvOS yet.) tvOS and iOS 9.1 have the ability to tell you where each touch press originated (a 'direct touch' - i.e. a touchscreen touch, an 'indirect touch' - i.e. from the remote or a joystick, and a stylus touch.) It makes sense to me to adopt version #1 of your proposal, with the addition of a new SDL_Touch API that identifies the type of touch/finger press, if possible. It's also worth mentioning that SDL already reports non-screen touches on platforms like OS X (when the trackpad is used), and there isn't a good way to detect the difference between that and a touchscreen touch currently, so having a way to identify the type of touch press would be a benefit even without support for the DS4 touch surface. |