4 #ifndef __M5_Touch_Class_H__
5 #define __M5_Touch_Class_H__
103 void update(std::uint32_t msec);
110 m5gfx::LGFX_Device*
_gfx =
nullptr;
std::int32_t _flickThresh
static constexpr std::size_t TOUCH_MIN_UPDATE_MSEC
touch_detail_t _touch_detail[TOUCH_MAX_POINTS]
const touch_detail_t & getDetail(std::size_t index=0) const
static constexpr std::size_t TOUCH_MAX_POINTS
m5gfx::touch_point_t _touch_raw[TOUCH_MAX_POINTS]
void setHoldThresh(std::uint16_t msec)
void begin(m5gfx::LGFX_Device *gfx)
void update(std::uint32_t msec)
std::uint8_t getCount(void) const
bool update_detail(touch_detail_t *dt, std::uint32_t msec, bool pressed, m5gfx::touch_point_t *tp)
const m5gfx::touch_point_t & getTouchPointRaw(std::size_t index=0) const
bool isEnabled(void) const
m5gfx::LGFX_Device * _gfx
std::uint8_t _touch_count
void setFlickThresh(std::uint16_t distance)
m5gfx::touch_point_t touch_point_t
bool wasClicked(void) const
point_t base
Flick start point.
bool isPressed(void) const
bool isHolding(void) const
bool wasReleased(void) const
bool wasPressed(void) const
int distanceX(void) const
bool isReleased(void) const
int distanceY(void) const
point_t prev
Previous point.