mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-11 15:40:28 +01:00
Add tagging of trackballs
Currently unused, but oh, the possibilities... The only thing we have to go on for trackballs at the moment is whether they have "Trackball" in the name string. All others need to be manually tagged. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
4d2724d022
commit
8a415e486a
5 changed files with 10 additions and 1 deletions
|
|
@ -1736,6 +1736,7 @@ evdev_read_model_flags(struct evdev_device *device)
|
|||
MODEL(ALPS_RUSHMORE),
|
||||
MODEL(LENOVO_T450_TOUCHPAD),
|
||||
MODEL(WOBBLY_TOUCHPAD),
|
||||
MODEL(TRACKBALL),
|
||||
{ NULL, EVDEV_MODEL_DEFAULT },
|
||||
#undef MODEL
|
||||
};
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ enum evdev_device_model {
|
|||
EVDEV_MODEL_ALPS_RUSHMORE = (1 << 16),
|
||||
EVDEV_MODEL_LENOVO_T450_TOUCHPAD= (1 << 17),
|
||||
EVDEV_MODEL_WOBBLY_TOUCHPAD = (1 << 18),
|
||||
EVDEV_MODEL_TRACKBALL = (1 << 19),
|
||||
};
|
||||
|
||||
struct mt_slot {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ static int events[] = {
|
|||
|
||||
struct litest_test_device litest_logitech_trackball_device = {
|
||||
.type = LITEST_LOGITECH_TRACKBALL,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON,
|
||||
.features = LITEST_RELATIVE | LITEST_BUTTON | LITEST_TRACKBALL,
|
||||
.shortname = "logitech trackball",
|
||||
.setup = litest_logitech_trackball_setup,
|
||||
.interface = NULL,
|
||||
|
|
|
|||
|
|
@ -228,6 +228,7 @@ enum litest_device_feature {
|
|||
LITEST_TABLET_PAD = 1 << 21,
|
||||
LITEST_RING = 1 << 22,
|
||||
LITEST_STRIP = 1 << 23,
|
||||
LITEST_TRACKBALL = 1 << 24,
|
||||
};
|
||||
|
||||
struct litest_device {
|
||||
|
|
|
|||
|
|
@ -146,3 +146,9 @@ libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnSystem76*pvrkudp1*
|
|||
##########################################
|
||||
libinput:touchpad:input:b0003v056Ap*
|
||||
LIBINPUT_MODEL_WACOM_TOUCHPAD=1
|
||||
|
||||
##########################################
|
||||
# Anything that has trackball in the name
|
||||
##########################################
|
||||
libinput:name:*Trackball*:dmi:*
|
||||
LIBINPUT_MODEL_TRACKBALL=1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue