Skip to content

TouchStateData

Struct

Source: TouchStateMachine.h

Description

Per-touch-ID state tracking

Properties

NameTypeDescription
stateTouchStateCurrent state
pressTimeuint32_tWhen press started (ms)
pressXint16_tX position at press
pressYint16_tY position at press
lastXint16_tLast known X position
lastYint16_tLast known Y position
longPressFiredboolLong press already fired
dragStartedboolDrag already started

Methods

, pressTime(0)

, pressX(0)

, pressY(0)

, lastX(0)

, lastY(0)

, longPressFired(false)

, dragStarted(false)

Released under the MIT License.