cohtml.InputSystem.TouchEvent
A class storing touch input event data.
Inherits from cohtml.InputSystem.PointerEvent, ITouchEventData, cohtml.InputSystem.InputEvent, cohtml.InputSystem.IViewSendable
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
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
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
function TouchEvent
TouchEvent(
uint id
)
Creates a touch event with the given id.
Parameters:
- id The identification of the event.
function UpdateActiveState
void UpdateActiveState()
Updates the IsActive state of the event.
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
property Id
uint Id;
The identification number of the event.
property IsActive
bool IsActive;
Returns true if the touch event is active.
property PointerEventType
override EventType PointerEventType;
Returns the pointer event type.
property Type
TouchEventData.EventType Type;
The event type of this mouse event.
property Modifiers
EventModifiersState Modifiers;
The key modifiers of this touch event.