pp::TouchInputEvent::TouchInputEvent |
( |
const InputEvent & |
event | ) |
|
|
explicit |
Constructs a touch input event object from the given generic input event. If the given event is itself is_null() or is not a touch input event, the touch object will be is_null().
pp::TouchInputEvent::TouchInputEvent |
( |
const InstanceHandle & |
instance, |
|
|
PP_InputEvent_Type |
type, |
|
|
PP_TimeTicks |
time_stamp, |
|
|
uint32_t |
modifiers |
|
) |
| |
Constructs a touch input even from the given parameters.
- Parameters
-
[in] | instance | The instance for which this event occurred. |
[in] | type | A PP_InputEvent_Type identifying the type of input event. |
[in] | time_stamp | A PP_TimeTicks indicating the time when the event occurred. |
[in] | modifiers | A bit field combination of the PP_InputEvent_Modifier flags. |
TouchPoint pp::TouchInputEvent::GetTouchById |
( |
PP_TouchListType |
list, |
|
|
uint32_t |
id |
|
) |
| const |
- Returns
- The TouchPoint in the given list with the given identifier, or an empty TouchPoint if the list does not contain a TouchPoint with that identifier.
TouchPoint pp::TouchInputEvent::GetTouchByIndex |
( |
PP_TouchListType |
list, |
|
|
uint32_t |
index |
|
) |
| const |
- Returns
- The TouchPoint at the given index of the given list, or an empty TouchPoint if the index is out of range.
uint32_t pp::TouchInputEvent::GetTouchCount |
( |
PP_TouchListType |
list | ) |
const |
- Returns
- The number of TouchPoints in this TouchList.
The documentation for this class was generated from the following file: