Skip to content
SiteEmail

cohtml.InputSystem.TouchEventCollection

A class storing a collection of touch input events that can be sent to a CohtmlView component.

Inherits from cohtml.InputSystem.IViewSendable

Name
TouchEventCollection()
voidSend(CohtmlView view)
Sends the touch events collection to a CohtmlView component.
voidUpdateActiveStates()
Updates the IsActive state of the touch events collection.
Name
TouchEventthis[uint key]
Throws an out of range exception if you try to access a TouchEvent with a key that is not in the list.
TouchEvent []ActiveTouches
Returns all active touch events.
Name
intCapacity
Returns the maximum count of touch events that can be performed at once.
TouchEvent []All
Returns all touch events.
TouchEventCollection()
void Send(
CohtmlView view
)

Sends the touch events collection to a CohtmlView component.

Parameters:

  • view The CohtmlView component to receive the event.

Reimplements: cohtml.InputSystem.IViewSendable.Send

void UpdateActiveStates()

Updates the IsActive state of the touch events collection.

TouchEvent this[uint key];

Throws an out of range exception if you try to access a TouchEvent with a key that is not in the list.

Parameters:

  • key The index of the TouchEvent in the collection.
TouchEvent [] ActiveTouches;

Returns all active touch events.

int Capacity => cohtmlNative.MAX_TRACKING_TOUCHES;

Returns the maximum count of touch events that can be performed at once.

TouchEvent [] All => m_InputTouches;

Returns all touch events.