cohtml::TouchEventData

A touch event.

#include <InputEvents.h>

Public Types

Name
enumEventType { TouchMove, TouchDown, TouchUp}

Public Functions

Name
TouchEventData()

Public Attributes

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.

Public Types Documentation

enum EventType

EnumeratorValueDescription
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.