summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve.h
diff options
context:
space:
mode:
Diffstat (limited to 'code/fe310/eos/eve.h')
-rw-r--r--code/fe310/eos/eve.h32
1 files changed, 19 insertions, 13 deletions
diff --git a/code/fe310/eos/eve.h b/code/fe310/eos/eve.h
index 0e6979c..8445ea1 100644
--- a/code/fe310/eos/eve.h
+++ b/code/fe310/eos/eve.h
@@ -2,24 +2,29 @@
#include "eve_def.h"
-/* events */
-#define EVE_TOUCH_ETYPE_TRACK 0x01
-#define EVE_TOUCH_ETYPE_TRACK_REG 0x02
-#define EVE_TOUCH_ETYPE_TAG 0x10
-#define EVE_TOUCH_ETYPE_TAG_UP 0x20
-#define EVE_TOUCH_ETYPE_POINT 0x40
-#define EVE_TOUCH_ETYPE_POINT_UP 0x80
-
-#define EVE_TOUCH_ETYPE_TRACK_MASK (EVE_TOUCH_ETYPE_TRACK | EVE_TOUCH_ETYPE_TRACK_REG)
-#define EVE_TOUCH_ETYPE_TAG_MASK (EVE_TOUCH_ETYPE_TAG | EVE_TOUCH_ETYPE_TAG_UP)
-#define EVE_TOUCH_ETYPE_POINT_MASK (EVE_TOUCH_ETYPE_POINT | EVE_TOUCH_ETYPE_POINT_UP)
+#define EVE_ETYPE_INTR 1
-/* extended events */
+/* events */
+#define EVE_TOUCH_ETYPE_TRACK 0x0001
+#define EVE_TOUCH_ETYPE_TRACK_REG 0x0002
+#define EVE_TOUCH_ETYPE_TRACK_START 0x0004
+#define EVE_TOUCH_ETYPE_TRACK_STOP 0x0008
+#define EVE_TOUCH_ETYPE_TAG 0x0010
+#define EVE_TOUCH_ETYPE_TAG_UP 0x0020
+#define EVE_TOUCH_ETYPE_POINT 0x0040
+#define EVE_TOUCH_ETYPE_POINT_UP 0x0080
#define EVE_TOUCH_ETYPE_LPRESS 0x0100
#define EVE_TOUCH_ETYPE_TAP1 0x0200
#define EVE_TOUCH_ETYPE_TAP2 0x0400
-#define EVE_TOUCH_ETYPE_TRACK_DONE 0x0800
+#define EVE_TOUCH_EVT_MASK 0x0fff
+
+#define EVE_TOUCH_ETYPE_TAG_MASK (EVE_TOUCH_ETYPE_TAG | EVE_TOUCH_ETYPE_TAG_UP)
+#define EVE_TOUCH_ETYPE_TAP_MASK (EVE_TOUCH_ETYPE_TAP1 | EVE_TOUCH_ETYPE_TAP2)
+#define EVE_TOUCH_ETYPE_TRACK_MASK (EVE_TOUCH_ETYPE_TRACK | EVE_TOUCH_ETYPE_TRACK_REG | EVE_TOUCH_ETYPE_TRACK_START | EVE_TOUCH_ETYPE_TRACK_STOP)
+#define EVE_TOUCH_ETYPE_POINT_MASK (EVE_TOUCH_ETYPE_POINT | EVE_TOUCH_ETYPE_POINT_UP)
+
+/* extended events */
#define EVE_TOUCH_ETYPE_TRACK_LEFT 0x1000
#define EVE_TOUCH_ETYPE_TRACK_RIGHT 0x2000
#define EVE_TOUCH_ETYPE_TRACK_UP 0x4000
@@ -27,6 +32,7 @@
#define EVE_TOUCH_ETYPE_TRACK_X (EVE_TOUCH_ETYPE_TRACK_LEFT | EVE_TOUCH_ETYPE_TRACK_RIGHT)
#define EVE_TOUCH_ETYPE_TRACK_Y (EVE_TOUCH_ETYPE_TRACK_UP | EVE_TOUCH_ETYPE_TRACK_DOWN)
+#define EVE_TOUCH_ETYPE_TRACK_XY (EVE_TOUCH_ETYPE_TRACK_X | EVE_TOUCH_ETYPE_TRACK_Y)
/* tag options */
#define EVE_TOUCH_OPT_TRACK EVE_TOUCH_ETYPE_TRACK