You.i Engine
CYITrackpadEvent Class Reference

Detailed Description

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:

  • YI_TRACKPAD_DOWN
  • YI_TRACKPAD_MOVE
  • YI_TRACKPAD_UP

#include <event/YiTrackpadEvent.h>

Inheritance diagram for CYITrackpadEvent:

Public Member Functions

 CYITrackpadEvent (YI_EVENT_TYPE eEventType)
 
 CYITrackpadEvent (const CYITrackpadEvent &rOther)=default
 
virtual std::unique_ptr< CYIEventClone () const override
 
- Public Member Functions inherited from CYIEvent
 CYIEvent (YI_EVENT_TYPE eventType)
 
 CYIEvent (const CYIEvent &rOther)
 
virtual ~CYIEvent ()
 
const CYIStringGetName () const
 
YI_EVENT_TYPE GetType () const
 
void SetType (YI_EVENT_TYPE eventType)
 
bool IsActionEvent () const
 
std::unique_ptr< CYIActionEventCloneAsActionEvent () const
 
bool IsKeyEvent () const
 
std::unique_ptr< CYIKeyEventCloneAsKeyEvent () const
 
bool IsFocusEvent () const
 
std::unique_ptr< CYIFocusEventCloneAsFocusEvent () const
 
bool IsTrackpadEvent () const
 
std::unique_ptr< CYITrackpadEventCloneAsTrackpadEvent () const
 
- Public Member Functions inherited from CYIScriptableObject
 CYIScriptableObject ()
 
 CYIScriptableObject (const CYIScriptableObject &other)
 
CYIScriptableObjectoperator= (const CYIScriptableObject &other)
 
virtual ~CYIScriptableObject ()
 
CYIBindingImplementationGetBindingImplementation () const
 
void SetBindingImplementation (CYIBindingImplementation *pBindingImplementation)
 
virtual const CYIRuntimeTypeInfoGetRuntimeTypeInfoForScriptObject () const
 

Public Attributes

glm::vec2 m_Translation
 
glm::vec2 m_Velocity
 
- Public Attributes inherited from CYIEvent
CYIEventTargetm_pTarget
 
CYIEventTargetm_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
 

Constructor & Destructor Documentation

CYITrackpadEvent::CYITrackpadEvent ( YI_EVENT_TYPE  eEventType)
CYITrackpadEvent::CYITrackpadEvent ( const CYITrackpadEvent rOther)
default

Member Function Documentation

virtual std::unique_ptr<CYIEvent> CYITrackpadEvent::Clone ( ) const
overridevirtual

Reimplemented from CYIEvent.

Member Data Documentation

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.


The documentation for this class was generated from the following file: