Stores data related to trackpad input.
Trackpad events represent input made on a trackpad device such as on a tvOS Siri remote. Gestures can be extracted from the data contained in the event. Trackpad events can be of one of the following types:
#include <event/YiTrackpadEvent.h>

Public Attributes | |
| glm::vec2 | m_Translation |
| glm::vec2 | m_Velocity |
Public Attributes inherited from CYIEvent | |
| CYIEventTarget * | m_pTarget |
| CYIEventTarget * | m_pCurrentTarget |
| YI_EVENT_PHASE | m_ePhase |
| bool | m_bCanCancel |
| bool | m_bCanBubble |
| bool | m_bCanCapture |
| bool | m_bStopPropagation |
| bool | m_bHandled |
| uint64_t | m_uEventTimeMs |
| CYITrackpadEvent::CYITrackpadEvent | ( | YI_EVENT_TYPE | eEventType | ) |
|
default |
|
overridevirtual |
Reimplemented from CYIEvent.
| glm::vec2 CYITrackpadEvent::m_Translation |
The net translation from the first location at which the user held down. This is expressed in normalized units where the screen is represented by a square from (0,0) at the top-left to (1,1) at the bottom-right.
| glm::vec2 CYITrackpadEvent::m_Velocity |
The velocity of this event. This is expressed in normalized units where the screen is represented by a square from (0,0) at the top-left to (1,1) at the bottom-right.