HTouchInfo

class HTouchInfo

The HTouchInfo class encapsulates touch events.

HTouchInfo stores location and other information about touch events

Methods

HTouchInfo::HTouchInfo(float x, float y, float timestamp, int taps, MVO_POINTER_SIZED_UINT ident, bool active = true)

Constructs an HTouchInfo object.

Parameters

view: A pointer to the HBaseView object.

x: The X coordinate of the touch event, in window space.

y: The Y coordinate of the touch event, in window space.

timestamp: The time when the touch has occured

taps: Number of “taps” (one or more consecutive touches interpreted as one touch)

ident: Unique identifier

active: Touch is active

HTouchInfo::HTouchInfo()

Destructor for HTouchManager

void HTouchInfo::Init(float x = 0.0f, float y = 0.0f, float timestamp = 0.0f, int taps = 0, MVO_POINTER_SIZED_UINT ident = 0, bool active = true)

HTouchInfo Initializer

Parameters

x: The X coordinate of the touch event, in window space.

y: The Y coordinate of the touch event, in window space.

timestamp: The time when the touch has occured

taps: Number of “taps” (one or more consecutive touches interpreted as one touch)

ident: Unique identifier

active: Touch is active

Variables

float HTouchInfo::m_x
float

x coordinate of touch in window space

float HTouchInfo::m_y
float

y coordinate of touch in window space

float HTouchInfo::m_timestamp
float

Time when the touch has occured

int HTouchInfo::m_taps
int

number of consecutive touches interpreted as one touch

bool HTouchInfo::m_bActive
bool

Touch is active

MVO_POINTER_SIZED_UINT HTouchInfo::m_id
MVO_POINTER_SIZED_UINT

Unique Identifier