summaryrefslogtreecommitdiff
path: root/test/test-pointer.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-02-17 08:39:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-02-20 12:25:05 +1000
commitf7f849e576a5481751a8c3d086fc1b1b752fecc4 (patch)
tree16a2c61c53aa205c58fc3e8ec57c09eca428755a /test/test-pointer.c
parente43f9da9ecea6d17100c0012a89f5d162b2d7d7b (diff)
downloadlibinput-f7f849e576a5481751a8c3d086fc1b1b752fecc4.tar.gz
evdev: add quirk for Logitech Marble Mouse
Device needs BTN_MIDDLE disabled, this way middle button emulation is present by default. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'test/test-pointer.c')
-rw-r--r--test/test-pointer.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test-pointer.c b/test/test-pointer.c
index 27978a98..8929a0da 100644
--- a/test/test-pointer.c
+++ b/test/test-pointer.c
@@ -1161,6 +1161,19 @@ START_TEST(pointer_scroll_nowheel_defaults)
}
END_TEST
+START_TEST(pointer_scroll_defaults_logitech_marble)
+{
+ struct litest_device *dev = litest_current_device();
+ struct libinput_device *device = dev->libinput_device;
+ enum libinput_config_scroll_method method;
+
+ method = libinput_device_config_scroll_get_method(device);
+ ck_assert_int_eq(method, LIBINPUT_CONFIG_SCROLL_NO_SCROLL);
+ method = libinput_device_config_scroll_get_default_method(device);
+ ck_assert_int_eq(method, LIBINPUT_CONFIG_SCROLL_NO_SCROLL);
+}
+END_TEST
+
START_TEST(pointer_accel_defaults)
{
struct litest_device *dev = litest_current_device();
@@ -1939,6 +1952,7 @@ litest_setup_tests_pointer(void)
litest_add("pointer:scroll", pointer_scroll_button_no_event_before_timeout, LITEST_RELATIVE|LITEST_BUTTON, LITEST_ANY);
litest_add("pointer:scroll", pointer_scroll_button_middle_emulation, LITEST_RELATIVE|LITEST_BUTTON, LITEST_ANY);
litest_add("pointer:scroll", pointer_scroll_nowheel_defaults, LITEST_RELATIVE|LITEST_BUTTON, LITEST_WHEEL);
+ litest_add_for_device("pointer:scroll", pointer_scroll_defaults_logitech_marble , LITEST_LOGITECH_TRACKBALL);
litest_add("pointer:scroll", pointer_scroll_natural_defaults, LITEST_WHEEL, LITEST_TABLET);
litest_add("pointer:scroll", pointer_scroll_natural_defaults_noscroll, LITEST_ANY, LITEST_WHEEL);
litest_add("pointer:scroll", pointer_scroll_natural_enable_config, LITEST_WHEEL, LITEST_TABLET);