cohtml.InputSystem.TouchEvent
A class storing touch input event data.
Inherits from cohtml.InputSystem.PointerEvent, ITouchEventData, cohtml.InputSystem.InputEvent, cohtml.InputSystem.IViewSendable
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| TouchEvent(uint id) Creates a touch event with the given id. | |
| void | UpdateActiveState() Updates the IsActive state of the event. |
| TouchEventData | SetNativePosition(Vector2Int position) Sets the X and Y coordinate of the events position. |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| uint | Id The identification number of the event. |
| bool | IsActive Returns true if the touch event is active. |
| override EventType | PointerEventType Returns the pointer event type. |
| TouchEventData.EventType | Type The event type of this mouse event. |
| EventModifiersState | Modifiers The key modifiers of this touch event. |
Additional inherited members
Section titled “Additional inherited members”Public Types inherited from cohtml.InputSystem.PointerEvent
| Name | |
|---|---|
| enum class | EventType { Up, Down, Move} The type of the pointer event. |
Public Functions inherited from cohtml.InputSystem.PointerEvent
| Name | |
|---|---|
| void | AddView(CohtmlView view, Vector2Int position) Temporarily stores the CohtmlView component and the position where the event happened. |
| Vector2Int | GetViewPosition(CohtmlView view) Returns the position of the event that hit a CohtmlView. |
| void | RemoveView(CohtmlView view) Removes the CohtmlView from the temporary collection of events that happened. |
| void | ClearViews() Clears the collection of CohtmlView components hit by this event. |
Public Properties inherited from cohtml.InputSystem.PointerEvent
| Name | |
|---|---|
| Vector2Int | Position The position of the pointer event. |
| int | X The X coordinate of the events position. |
| int | Y The Y coordinate of the events position. |
Public Functions inherited from cohtml.InputSystem.InputEvent
| Name | |
|---|---|
| virtual void | Send(CohtmlView view) Sends the input event to a CohtmlView component. |
| void | Dispose() |
Public Functions inherited from cohtml.InputSystem.IViewSendable
| Name | |
|---|---|
| void | Send(CohtmlView view) |
Public Functions Documentation
Section titled “Public Functions Documentation”function TouchEvent
Section titled “function TouchEvent”TouchEvent( uint id)Creates a touch event with the given id.
Parameters:
- id The identification of the event.
function UpdateActiveState
Section titled “function UpdateActiveState”void UpdateActiveState()Updates the IsActive state of the event.
function SetNativePosition
Section titled “function SetNativePosition”TouchEventData SetNativePosition( Vector2Int position)Sets the X and Y coordinate of the events position.
Parameters:
- position The event position in screen space coordinates.
Public Property Documentation
Section titled “Public Property Documentation”property Id
Section titled “property Id”uint Id;The identification number of the event.
property IsActive
Section titled “property IsActive”bool IsActive;Returns true if the touch event is active.
property PointerEventType
Section titled “property PointerEventType”override EventType PointerEventType;Returns the pointer event type.
property Type
Section titled “property Type”TouchEventData.EventType Type;The event type of this mouse event.
property Modifiers
Section titled “property Modifiers”EventModifiersState Modifiers;The key modifiers of this touch event.
© 2026 Coherent Labs. All rights reserved.