Commit bfccf5c4 authored by Peter Hutterer's avatar Peter Hutterer

touchpad: correct a comment regarding the touchpad integration

The previous text wasn't accurate enough, USB used to be considered
external but we've since started deferring to the hwdb for those (except
Apple).

Fixes #483
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 50ee371c
Pipeline #145831 passed with stages
in 17 minutes and 9 seconds
......@@ -2681,10 +2681,15 @@ evdev_tag_touchpad(struct evdev_device *device,
}
}
/* simple approach: touchpads on USB or Bluetooth are considered
* external, anything else is internal. Exception is Apple -
* internal touchpads are connected over USB and it doesn't have
* external USB touchpads anyway.
/* The hwdb is the authority on integration, these heuristics are
* the fallback only (they precede the hwdb too).
*
* Simple approach: USB is unknown, with the exception
* of Apple where internal touchpads are connected over USB and it
* doesn't have external USB touchpads anyway.
*
* Bluetooth touchpads are considered external, anything else is
* internal.
*/
bustype = libevdev_get_id_bustype(device->evdev);
vendor = libevdev_get_id_vendor(device->evdev);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment