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.