Touch

class HPS::Touch

The Touch class represents the state of a single touch on a multi-touch device.

Public Functions

inline bool operator!=(Touch const &in_that) const

Check if the source Touch is not equivalent to this Touch.

Parameters

in_that – The source Touch to compare to this Touch.

Returns

true if the objects are not equivalent, false otherwise.

inline bool operator==(Touch const &in_that) const

Check if the source Touch is equivalent to this Touch.

Parameters

in_that – The source Touch to compare to this Touch.

Returns

true if the objects are equivalent, false otherwise.

inline Touch()

The default constructor creates a Touch object with a null TouchID, location at the window origin, and a down state of false.

inline Touch(TouchID in_id, WindowPoint const &in_location, size_t in_tap_count = 1)

This constructor creates a Touch object with a specified TouchID, location and down state.

Parameters
  • in_id – TouchID for this Touch.

  • in_location – Location for this Touch.

  • in_tap_count – Number of taps for this Touch. Defaults to 1

Public Members

TouchID ID

TouchID for this Touch.

WindowPoint Location

Location in window space for this Touch.

size_t TapCount

Number of taps for this Touch.