From 168de89a70deb173a32b58b313ddc0aa13310f9a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 1 Jun 2023 15:17:18 +1000 Subject: [PATCH] eis: sync event codes with libei Commit da37da13083ac "ei: change the API to match the protocol interfaces closer" change the event type numbers for per-capability grouping but the follow-up commit e6954b76d for eis didn't do the same. Right now the event types are out sync. This doesn't technically matter as this is a libeis implementation detail (those types don't exist on the protocol) but it'd still be nice to sync them before we ship 1.0. This is an ABI break but not an API break. --- src/libeis.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libeis.h b/src/libeis.h index 3c52760..af87784 100644 --- a/src/libeis.h +++ b/src/libeis.h @@ -300,16 +300,16 @@ enum eis_event_type { * An absolute motion event with absolute position within the device's * regions or size, depending on the device type. */ - EIS_EVENT_POINTER_MOTION_ABSOLUTE, + EIS_EVENT_POINTER_MOTION_ABSOLUTE = 400, /** * A button press or release event */ - EIS_EVENT_BUTTON_BUTTON, + EIS_EVENT_BUTTON_BUTTON = 500, /** * A vertical and/or horizontal scroll event with logical-pixels * or mm precision, depending on the device type. */ - EIS_EVENT_SCROLL_DELTA, + EIS_EVENT_SCROLL_DELTA = 600, /** * An ongoing scroll sequence stopped. */ @@ -327,7 +327,7 @@ enum eis_event_type { /** * A key press or release event */ - EIS_EVENT_KEYBOARD_KEY = 400, + EIS_EVENT_KEYBOARD_KEY = 700, /** * Event for a single touch set down on the device's logical surface. @@ -335,7 +335,7 @@ enum eis_event_type { * between. On multitouch capable devices, several touchs eqeuences * may be active at any time. */ - EIS_EVENT_TOUCH_DOWN = 500, + EIS_EVENT_TOUCH_DOWN = 800, /** * Event for a single touch released from the device's logical * surface.