4#include "TinyGPU/Input/TouchDriverCommon.h"
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
46 :
tft_(
tft), threshold_(threshold) {}
50 bool begin()
override {
return true; }
55 down_ = tft_.getTouch(&x, &y, threshold_) != 0;
57 lastX_ =
static_cast<int16_t>(x);
58 lastY_ =
static_cast<int16_t>(y);
64 if (!down_)
return false;
Touch driver that reads through Bodmer's TFT_eSPI (https://github.com/Bodmer/TFT_eSPI) resistive touc...
Definition: TouchDriverTFTeSPI.h:37
bool isTouched() override
Return whether the panel currently appears touched.
Definition: TouchDriverTFTeSPI.h:52
bool getPoint(Point &outPoint) override
Read the current touch point.
Definition: TouchDriverTFTeSPI.h:63
bool begin() override
Definition: TouchDriverTFTeSPI.h:50
TouchDriverTFTeSPI(TFT_eSPI &tft, uint16_t threshold=600)
Definition: TouchDriverTFTeSPI.h:45
Base class for touch controllers.
Definition: TouchDriverCommon.h:72
Point mapCoordinates(int16_t rawX, int16_t rawY, uint16_t pressure=255) const
Convert raw controller coordinates into logical display space.
Definition: TouchDriverCommon.h:208
Definition: DSIBusESP32.h:19
Touch point.
Definition: TouchDriverCommon.h:32