mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 05:40:39 +01:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
parent
50ee371c59
commit
bfccf5c405
1 changed files with 9 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue