HTouchInfo

Fields

float m_x
float m_y
float m_timestamp
int m_taps
bool m_bActive
unsigned long m_id

Functions

HTouchInfo
HTouchInfo
void Init

Detailed Description

class HTouchInfo

The HTouchInfo class encapsulates touch events.

HTouchInfo stores location and other information about touch events

Public Functions

inline HTouchInfo(float x, float y, float timestamp, int taps, unsigned long 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
inline HTouchInfo()

Destructor for HTouchManager

inline void Init(float x = 0.0f, float y = 0.0f, float timestamp = 0.0f, int taps = 0, unsigned long 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

Public Members

float m_x

x coordinate of touch in window space

float m_y

y coordinate of touch in window space

float m_timestamp

Time when the touch has occured

int m_taps

number of consecutive touches interpreted as one touch

bool m_bActive

Touch is active

unsigned long m_id

Unique Identifier