eis: sync event codes with libei

Commit da37da1308 "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.
This commit is contained in:
Peter Hutterer 2023-06-01 15:17:18 +10:00
parent 080864d82a
commit 168de89a70

View file

@ -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.