From c5dc45e1443363d95b9708de26e86ed57b6946e6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 28 Jun 2023 17:25:41 -0500 Subject: [PATCH] Define an unknown tool type and clarify button-only events --- src/Limelight.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Limelight.h b/src/Limelight.h index bd20c4a..fff727b 100644 --- a/src/Limelight.h +++ b/src/Limelight.h @@ -593,8 +593,12 @@ int LiSendTouchEvent(uint8_t eventType, uint32_t pointerId, float x, float y, fl // input, including rotation, tilt, and buttons. Rotation is in degrees from vertical in Y dimension // (parallel to screen, 0..360) and tilt is in degrees from vertical in Z dimension (perpendicular // to screen, 0..90). -#define LI_TOOL_TYPE_PEN 0x01 -#define LI_TOOL_TYPE_ERASER 0x02 +// +// x, y, pressure, rotation, and tilt are ignored for LI_TOUCH_EVENT_BUTTON_ONLY events. If one of +// those changes, send LI_TOUCH_EVENT_MOVE or LI_TOUCH_EVENT_HOVER instead. +#define LI_TOOL_TYPE_UNKNOWN 0x00 +#define LI_TOOL_TYPE_PEN 0x01 +#define LI_TOOL_TYPE_ERASER 0x02 #define LI_PEN_BUTTON_PRIMARY 0x01 #define LI_PEN_BUTTON_SECONDARY 0x02 #define LI_PEN_BUTTON_TERTIARY 0x04