- May 22, 2014
-
-
Jonas Ådahl authored
Bump the libinput version and the libtool version. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
Jonas Ådahl authored
Add the explanatory description of the version components from libevdev as well. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
- Apr 30, 2014
-
-
Check the value returned by calloc. Signed-off-by: Carlos Olmedo Escobar <carlos.olmedo.e@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
- Apr 23, 2014
-
-
Peter Hutterer authored
We depend on device creation on the host system, having the tests run in parallel runs a risk of random failure. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
When building on a system with an older kernel, some KEY_ macros might be missing. To be able to build on such system, define them if they are missing. It is probably better to keep our own copy of input.h somewhere in our tree, and include that one instead of the system one, but that can be added later. Signed-off-by: Jonas Ådahl <jadahl@opera.com>
-
Peter Hutterer authored
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Peter Hutterer authored
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
The infinitive reads a bit odd there. Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
- Apr 22, 2014
-
-
Jonas Ådahl authored
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
Jonas Ådahl authored
Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Jonas Ådahl authored
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
Jonas Ådahl authored
Compositors will need to keep provide virtual devices of supported generic device types (pointer, keyboard, touch etc). Events from each device capable of a certain device type abstraction should be combined as if it was only one device. For key and button events this means counting presses of every key or button. With this patch, libinput provides two new API for doing just this; libinput_event_pointer_get_seat_button_count() and libinput_event_keyboard_get_seat_key_count(). With these functions, a compositor can sort out what key or button events that should be ignored for a virtual device. This could for example look like: event = libinput_get_event(libinput); switch (libinput_event_get_type(event)) { ... case LIBINPUT_EVENT_POINTER_BUTTON: device = libinput_event_get_device(event); seat = libinput_event_get_seat(device); pevent = libinput_event_get_pointer_event(event); if (libinput_event_pointer_get_button_state(pevent) && libinput_event_pointer_get_seat_button_count(pevent) == 1) notify_pointer_button_press(seat); else if (libinput_event_pointer_get_button_state(pevent) && libinput_event_pointer_get_seat_button_count(pevent) == 0) notify_pointer_button_release(seat); break; ... } Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Jonas Ådahl authored
Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Jonas Ådahl authored
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
Jonas Ådahl authored
libinput currently handles 16 per device touch points. Test that we behave as expected when a device has an even higher number of active touch points. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Jonas Ådahl authored
When the kernel sends multiple touch down or touch up for the same slot in a row, ignore any such subsequent event ensuring libinput always produces 1 x touch down -> [n x touch motion] -> 1 x touch up event series. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Jonas Ådahl authored
Don't have a hard coded slot array size; instead allocate the array needed according to the abs info reported by either libmtdev or libevdev. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
Jonas Ådahl authored
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
- Apr 17, 2014
-
-
For logging when things happen which should not happen. We may want to do something more fancy in the future but for now this suffices. Modelled after log_bug in libevdev. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
-
- Apr 12, 2014
-
-
Bring back the device configure logging that was originally part of Weston's evdev. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-
- Apr 10, 2014
-
-
Peter Hutterer authored
Looks a bit excessive given how simple the base is but hey, we don't want to ever break that bit. That'd be embarrassing. And while we're at it make sure that the 'wrong' event getters return NULL for each event. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
Peter Hutterer authored
A few functions only work on the base event but once we've converted to the target event we can't go back. Casting works for now but that would expose internal ABI. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
Peter Hutterer authored
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
Peter Hutterer authored
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
Peter Hutterer authored
And redirect the log to stdout. libinput logs to stderr by default, but if we're running with --verbose we want all msgs on the same stream. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
Peter Hutterer authored
Remove compiler warning about signed/unsigned comparison. And while we're at it, rename i to _i in the macro to avoid name clashes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
Peter Hutterer authored
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
-
Peter Hutterer authored
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-
- Apr 09, 2014
-
-
Jonas Ådahl authored
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
Jonas Ådahl authored
In litest.h it was called litest_button_click() while in litest.c litest_click(); update the definition to be the same as the declaration. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
-
- Apr 08, 2014
-
-
Jonas Ådahl authored
Instead of having a test device which only purpose is to test absolute coordinate transformation, use the litest_create_device_with_overrides() API to create a specially crafted wacom touch device with high resolution. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-
Peter Hutterer authored
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-
Peter Hutterer authored
For specific tests we need something that e.g. looks like a touchpad, but has a different name, a different number of slots, etc. In this case, the following code will do exactly that: struct input_absinfo overrides[] = { { .value = ABS_MT_SLOT, .minimum = 0, .maximum = 100 }, { .value = -1 }, }; litest_create_device_with_overrides(LITEST_SYNAPTICS_CLICKPAD, NULL, NULL, &overrides, NULL); For general event codes, overrides can only add to the set of events, they can't remove. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-
Peter Hutterer authored
Most of the test devices now are static descriptions anyway, make them fully static now, including for touch events. Switch the synaptics device now as example, the rest comes later for easier patch review. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-
Peter Hutterer authored
Reduces the amount of boilerplate code. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-
Peter Hutterer authored
Both functions accept a series of event types/codes tuples, terminated by -1. For the even type INPUT_PROP_MAX (an invalid type otherwise) the code is used as a property to enable. The _abs function als takes an array of absinfo, with absinfo.value determining the axis to change. If none are given, abs axes are initialized with default settings. Both functions abort on failure, so the caller does not need to check the return value. Example code for creating a rel device: struct libevdev_uinput *uinput; struct input_id id = { ... }; uinput = litest_create_uinput_device("foo", &id, EV_REL, REL_X, EV_REL, REL_Y, EV_KEY, BTN_LEFT, INPUT_PROP_MAX, INPUT_PROP_BUTTONPAD, -1); libevdev_uinput_write_event(uinput, EV_REL, REL_X, -1); libevdev_uinput_write_event(uinput, EV_SYN, SYN_REPORT, 0); ... libevdev_uinput_destroy(uinput); Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-