Base 4 Scope (4 March 2022)
Dependencies: mbed QEI DmTftLibrary
Diff: Display/DisplayDriver.cpp
- Revision:
- 21:ab8027016a2c
- Parent:
- 20:626b92b70bf7
- Child:
- 24:9f96fd6764d2
diff -r 626b92b70bf7 -r ab8027016a2c Display/DisplayDriver.cpp --- a/Display/DisplayDriver.cpp Thu Nov 08 10:14:39 2018 +0000 +++ b/Display/DisplayDriver.cpp Thu Jan 20 08:15:44 2022 +0000 @@ -334,6 +334,19 @@ } } +void TouchedXYT (uint16_t* x, uint16_t* y, bool* t) { + uint16_t ui16_x; + uint16_t ui16_y; + bool b_t; + Touch.readTouchData (ui16_x, + ui16_y, + b_t); + + *x = ui16_x; + *y = ui16_y; + *t = b_t; +} + GraphObjectStatus_t GraphObjectTouched( GraphObject_t* objects, \ uint8_t objectsCount, \ uint8_t* touchedObject)