#include <Touch_Class.hpp>
Definition at line 37 of file Touch_Class.hpp.
◆ begin()
void m5::Touch_Class::begin |
( |
m5gfx::LGFX_Device * |
gfx | ) |
|
|
inline |
◆ end()
void m5::Touch_Class::end |
( |
void |
| ) |
|
|
inline |
◆ getCount()
std::uint8_t m5::Touch_Class::getCount |
( |
void |
| ) |
const |
|
inline |
Get the current number of touchpoints.
- Returns
- number of touchpoints.
Definition at line 88 of file Touch_Class.hpp.
◆ getDetail()
const touch_detail_t& m5::Touch_Class::getDetail |
( |
std::size_t |
index = 0 | ) |
const |
|
inline |
◆ getTouchPointRaw()
const m5gfx::touch_point_t& m5::Touch_Class::getTouchPointRaw |
( |
std::size_t |
index = 0 | ) |
const |
|
inline |
◆ isEnabled()
bool m5::Touch_Class::isEnabled |
( |
void |
| ) |
const |
|
inline |
◆ setFlickThresh()
void m5::Touch_Class::setFlickThresh |
( |
std::uint16_t |
distance | ) |
|
|
inline |
◆ setHoldThresh()
void m5::Touch_Class::setHoldThresh |
( |
std::uint16_t |
msec | ) |
|
|
inline |
◆ update()
void m5::Touch_Class::update |
( |
std::uint32_t |
msec | ) |
|
◆ update_detail() [1/2]
bool m5::Touch_Class::update_detail |
( |
touch_detail_t * |
dt, |
|
|
std::uint32_t |
msec |
|
) |
| |
|
protected |
◆ update_detail() [2/2]
bool m5::Touch_Class::update_detail |
( |
touch_detail_t * |
dt, |
|
|
std::uint32_t |
msec, |
|
|
bool |
pressed, |
|
|
m5gfx::touch_point_t * |
tp |
|
) |
| |
|
protected |
◆ _flickThresh
std::int32_t m5::Touch_Class::_flickThresh = 8 |
|
protected |
◆ _gfx
m5gfx::LGFX_Device* m5::Touch_Class::_gfx = nullptr |
|
protected |
◆ _last_msec
std::uint32_t m5::Touch_Class::_last_msec = 0 |
|
protected |
◆ _msecHold
std::int32_t m5::Touch_Class::_msecHold = 500 |
|
protected |
◆ _touch_count
std::uint8_t m5::Touch_Class::_touch_count |
|
protected |
◆ _touch_detail
◆ _touch_raw
◆ TOUCH_MAX_POINTS
constexpr std::size_t m5::Touch_Class::TOUCH_MAX_POINTS = 3 |
|
staticconstexpr |
◆ TOUCH_MIN_UPDATE_MSEC
constexpr std::size_t m5::Touch_Class::TOUCH_MIN_UPDATE_MSEC = 4 |
|
staticconstexpr |
The documentation for this class was generated from the following files: