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

Public Functions

Name
TouchEventCollection()
voidSend(CohtmlView view)
Sends the touch events collection to a CohtmlView component.
voidUpdateActiveStates()
Updates the IsActive state of the touch events collection.

Public Properties

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.

Public Attributes

Name
intCapacity
Returns the maximum count of touch events that can be performed at once.
TouchEvent []All
Returns all touch events.

Public Functions Documentation

function TouchEventCollection

TouchEventCollection()

function Send

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

function UpdateActiveStates

void UpdateActiveStates()

Updates the IsActive state of the touch events collection.

Public Property Documentation

property this[uint key]

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.

property ActiveTouches

TouchEvent [] ActiveTouches;

Returns all active touch events.

Public Attributes Documentation

variable Capacity

int Capacity => cohtmlNative.MAX_TRACKING_TOUCHES;

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

variable All

TouchEvent [] All => m_InputTouches;

Returns all touch events.