From 7e7d4ab744d64d5a7d1309623a3dc5b615ea8142 Mon Sep 17 00:00:00 2001 From: futerigele Date: Fri, 31 Dec 2021 17:54:02 +0800 Subject: [PATCH] touch: Add ioctl to enable/disable gesture Signed-off-by: futerigele --- include/nuttx/input/touchscreen.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nuttx/input/touchscreen.h b/include/nuttx/input/touchscreen.h index 7116147064..dc80f49ce0 100644 --- a/include/nuttx/input/touchscreen.h +++ b/include/nuttx/input/touchscreen.h @@ -53,9 +53,10 @@ #define TSIOC_SETFREQUENCY _TSIOC(0x0003) /* arg: Pointer to uint32_t frequency value */ #define TSIOC_GETFREQUENCY _TSIOC(0x0004) /* arg: Pointer to uint32_t frequency value */ #define TSIOC_GETFWVERSION _TSIOC(0x0005) /* arg: Pointer to uint32_t firmware version value */ +#define TSIOC_ENABLEGESTURE _TSIOC(0x0006) /* arg: Pointer to int for enable gesture feature */ #define TSC_FIRST 0x0001 /* First common command */ -#define TSC_NCMDS 5 /* Five common commands */ +#define TSC_NCMDS 6 /* Six common commands */ /* User defined ioctl commands are also supported. However, the * TSC driver must reserve a block of commands as follows in order