[PATCH libinput v2 04/11] evdev: Add evdev_any_button_down helper function

Bill Spitzak spitzak at gmail.com
Mon Nov 10 10:48:36 PST 2014



On 11/10/2014 02:59 AM, Hans de Goede wrote:

> +		if (libevdev_has_event_code(device->evdev, EV_KEY, button) &&
> +		    hw_is_key_down(device, button))

Should hw_is_key_down do this test instead? (ie it returns false if 
libevdev_has_event_code would return false). It seems like you repeat 
this a lot.



More information about the wayland-devel mailing list