LCD LIB

Dependents:   HagridOS5

Fork of RA8875 by David Smart

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Sat Aug 06 22:14:01 2016 +0000
Parent:
127:db7f2c704693
Child:
129:3f2d8b84144d
Commit message:
Small change in the touch handler so the single-touch and multi-touch APIs are more consistent.

Changed in this revision

RA8875_Touch.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/RA8875_Touch.cpp	Sat Aug 06 20:04:23 2016 +0000
+++ b/RA8875_Touch.cpp	Sat Aug 06 22:14:01 2016 +0000
@@ -265,14 +265,16 @@
             numberOfTouchPoints = 0;
         }
         touchInfo[0].touchCode = ts;
+    } else /* (useTouchPanel == TP_CAP) */ {
+        ts = touchInfo[0].touchCode;
     }
     if (panelTouched == true) {
         panelTouched = false;
         if (TouchPoint) {
             *TouchPoint = touchInfo[0].coordinates;
             ts = touchInfo[0].touchCode;
-        } else {
-            ts = touch;
+        //} else {
+        //    ts = touch;
         }
     }
     return ts;