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