Add touch action codes

Move from DUT repository to this shared repository, for use in analysis.

BUG=b:148627899
TEST=Run tests with chromium:2842185 and view analysis results

Change-Id: I3e6ac155e9ce9088e4917fec0f30659d2b59b37d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/optofidelity_protocols/+/2842563
Tested-by: Sean O'Brien <seobrien@chromium.org>
Reviewed-by: Harry Cutts <hcutts@chromium.org>
Commit-Queue: Sean O'Brien <seobrien@chromium.org>
diff --git a/dut.py b/dut.py
index 1666e39..a96686f 100644
--- a/dut.py
+++ b/dut.py
@@ -7,6 +7,7 @@
 """
 
 from collections import namedtuple
+from enum import IntEnum
 
 Measurement = namedtuple('Measurement', ['panel_x', 'panel_y', 'pressure',
                                          'finger_id', 'delay', 'time', 'event',
@@ -17,3 +18,14 @@
 Axis = namedtuple('Axis', ['min', 'max', 'resolution'])
 DUTConfig = namedtuple('DUTConfig', ['client_id', 'x', 'y', 'pressure',
                                      'touch_major', 'touch_minor'])
+
+
+class Action(IntEnum):
+    """ Touch actions"""
+    DOWN        = 0
+    UP          = 1
+    MOVE        = 2
+    CANCEL      = 3
+    HOVER_MOVE  = 7
+    HOVER_DOWN  = 9
+    HOVER_UP    = 10