Skip to content

[Feature Request] Support trackpad as touch in Windows and Linux, matching SDL_HINT_TRACKPAD_IS_TOUCH_ONLY behavior #15974

Description

@chenx-dust

Intro

Currently, most laptops has a multi-touch supported trackpad, but SDL cannot treat them as touch device except macOS. While SDL_HINT_TRACKPAD_IS_TOUCH_ONLY has been implemented for so long time in macOS, this behavior is still missing on other major desktop platforms.

Potential Methods

  • Windows: Windows HID API can listen raw report from Precision Touchpad.
  • Linux: libinput or evdev can listen as well.

Expected Behavior

When the hint SDL_HINT_TRACKPAD_IS_TOUCH_ONLY is enabled, trackpads should be registered and treated as touch devices on Windows and Linux, just like they currently are on macOS.

It may be even better if trackpad can be divided into a separate category for better handling it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions