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.
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_ONLYhas been implemented for so long time in macOS, this behavior is still missing on other major desktop platforms.Potential Methods
libinputorevdevcan listen as well.Expected Behavior
When the hint
SDL_HINT_TRACKPAD_IS_TOUCH_ONLYis 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.