touchgfx::Gestures::registerDragEvent() method
@fn bool Gestures::registerDragEvent(uint16_t oldX, uint16_t oldY, uint16_t newX, uint16_t newY); Register a drag event. Register a drag event.
bool registerDragEvent(uint16_t oldX,
uint16_t oldY,
uint16_t newX,
uint16_t newY);
Arguments
oldX
The x coordinate of the drag start position (dragged from)
oldY
The y coordinate of the drag start position (dragged from)
newX
The x coordinate of the new position (dragged to)
newY
The y coordinate of the new position (dragged to)
Return value
True if the drag exceeds threshold value (and therefore was reported as a drag), or false if the drag did not exceed threshold (and therefore was discarded).