cohtml::TouchEventData
A touch event.
#include <InputEvents.h>
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum | EventType { TouchMove, TouchDown, TouchUp} |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| TouchEventData() |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| int | X The X position where the touch happened in pixels in the space of the view. |
| int | Y The Y position where the touch happened in pixels in the space of the view. |
| unsigned | Id Identifies a particular touch input. This value must stay consistent in a touch contact sequence. |
| EventType | Type The type of the touch event. |
| EventModifiersState | Modifiers Key modifiers. |
Public Types Documentation
Section titled “Public Types Documentation”enum EventType
Section titled “enum EventType”| Enumerator | Value | Description |
|---|---|---|
| TouchMove | ||
| TouchDown | ||
| TouchUp |
Public Functions Documentation
Section titled “Public Functions Documentation”function TouchEventData
Section titled “function TouchEventData”inline TouchEventData()Public Attributes Documentation
Section titled “Public Attributes Documentation”variable X
Section titled “variable X”int X;The X position where the touch happened in pixels in the space of the view.
variable Y
Section titled “variable Y”int Y;The Y position where the touch happened in pixels in the space of the view.
variable Id
Section titled “variable Id”unsigned Id;Identifies a particular touch input. This value must stay consistent in a touch contact sequence.
variable Type
Section titled “variable Type”EventType Type;The type of the touch event.
variable Modifiers
Section titled “variable Modifiers”EventModifiersState Modifiers;Key modifiers.
© 2026 Coherent Labs. All rights reserved.