gestures: allow any gesture event type for gesture_get_dx/dy and get_angle
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 9 Jun 2015 04:23:07 +0000 (14:23 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 6 Jul 2015 04:09:33 +0000 (14:09 +1000)
commita29155c9cb9d0decd56518c9cf6d2ede34264ae6
tree00ca8d05276dac3261680db271c6682447372154
parent9b938d65910b31dde8e405e599e7e7da21c7b174
gestures: allow any gesture event type for gesture_get_dx/dy and get_angle

For start/end, dx/dy is always 0.0, and there is no need to make calling this
function for start/end a caller bug. It just unnecessarily complicates the
caller's codepath.

Same for get_angle

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput.c
src/libinput.h