From 8f87b3be1e7631332cd8b245fb94d24d0354d0cb Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Fri, 22 Mar 2024 16:54:17 -0700 Subject: [PATCH] input: Add absolute input code for multitouch slot To support multitouch, input devices can report an absolute value to identify the specific slot to which the subsequent data is linked. Add a new code for `INPUT_ABS_MT_SLOT` for this purpose. Signed-off-by: Peter Johanson --- include/zephyr/dt-bindings/input/input-event-codes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/zephyr/dt-bindings/input/input-event-codes.h b/include/zephyr/dt-bindings/input/input-event-codes.h index 73d5f49b9bb3d6..937863539a1292 100644 --- a/include/zephyr/dt-bindings/input/input-event-codes.h +++ b/include/zephyr/dt-bindings/input/input-event-codes.h @@ -225,6 +225,7 @@ */ #define INPUT_ABS_BRAKE 0x0a /**< Absolute brake position */ #define INPUT_ABS_GAS 0x09 /**< Absolute gas position */ +#define INPUT_ABS_MT_SLOT 0x2f /**< Absolute multitouch slot identifier */ #define INPUT_ABS_RUDDER 0x07 /**< Absolute rudder position */ #define INPUT_ABS_RX 0x03 /**< Absolute rotation around X axis */ #define INPUT_ABS_RY 0x04 /**< Absolute rotation around Y axis */