summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-04-19 13:16:57 -0400
committerChris Michael <cp.michael@samsung.com>2017-04-19 13:16:57 -0400
commit642e7357f8c99d9a74cf3d1a89ab70d6d583dab6 (patch)
tree2bd6e1138cfd427108e07a1c8998b108339fd153
parent0e6cd3fbf5994ca9775267fc49d5282b11982822 (diff)
elput: Add case for wheel tilt when getting pointer axis value
libinput >= 1.7.0 added support for LIBINPUT_POINTER_AXIS_SOURCE_WHEEL_TILT, however we do not yet support that in elput, thus gcc was spilling a warning about an unhandled enumeration value here. We'll add a case for the above, plus a default to cover any future additions. Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/elput/elput_evdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index 93842ace0f..8686bdeef7 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -908,6 +908,9 @@ _pointer_axis_value(struct libinput_event_pointer *event, enum libinput_pointer_
908 case LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS: 908 case LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS:
909 val = libinput_event_pointer_get_axis_value(event, axis); 909 val = libinput_event_pointer_get_axis_value(event, axis);
910 break; 910 break;
911 case LIBINPUT_POINTER_AXIS_SOURCE_WHEEL_TILT:
912 default:
913 break;
911 } 914 }
912 915
913 return val; 916 return val;