nCine::TouchEvent class

Screen touch event.

Holds the snapshot of all active pointers together with the action that triggered the event.

Public types

struct Pointer
State of a single touch pointer.

Public static variables

static std::uint32_t MaxPointers constexpr
Maximum number of simultaneous pointers tracked.

Constructors, destructors, conversion operators

TouchEvent()

Public functions

auto findPointerIndex(std::int32_t pointerId) const -> std::int32_t
Returns the index of the pointer with the specified identifier, or -1 if not found.

Public variables

TouchEventType type
Type of the event.
std::uint32_t count
Number of active pointers.
std::int32_t actionIndex
Index into pointers of the pointer that triggered the event, or -1.
Pointer pointers
Active pointers.