Skip to content
SiteEmail

cohtml::TouchEventData

A touch event.

#include <InputEvents.h>

Name
enumEventType { TouchMove, TouchDown, TouchUp}
Name
TouchEventData()
Name
intX
The X position where the touch happened in pixels in the space of the view.
intY
The Y position where the touch happened in pixels in the space of the view.
unsignedId
Identifies a particular touch input. This value must stay consistent in a touch contact sequence.
EventTypeType
The type of the touch event.
EventModifiersStateModifiers
Key modifiers.
EnumeratorValueDescription
TouchMove
TouchDown
TouchUp
inline TouchEventData()
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.