devinput: Fix regression on Hiby R1

3a4da9381e change an underdocumented definition that turns
out to be important, yet not documented in the linux uapi definitions.

Revert that change, and document the magic values so this doesn't happen again.

Change-Id: I0fac4a9d68170920bb5db1018d765e8a2994a95f
This commit is contained in:
Solomon Peachy 2026-01-18 07:44:48 -05:00
parent b9ce049876
commit 8d15aff38a

View file

@ -105,9 +105,10 @@ static enum
TOUCHSCREEN_STATE_DOWN
} _last_touch_state = TOUCHSCREEN_STATE_UNKNOWN;
// XXX ... figure out what is standard.
/* Do _NOT_ change this. Unofficial Linux API */
#define EVENT_VALUE_TOUCHSCREEN_RELEASE -1
/* This is only used as an arbitrary placeholder */
#define EVENT_VALUE_TOUCHSCREEN_PRESS 1
#define EVENT_VALUE_TOUCHSCREEN_RELEASE 0
static int ts_enabled = 1;