DDraceNetwork Docs
CTouchControls::CTouchButtonBehavior Class Referenceabstract
Inheritance diagram for CTouchControls::CTouchButtonBehavior:
[legend]
Collaboration diagram for CTouchControls::CTouchButtonBehavior:
[legend]

Public Member Functions

virtual ~CTouchButtonBehavior ()=default
 
virtual void Init (CTouchButton *pTouchButton)
 
void Reset ()
 
void SetActive (const IInput::CTouchFingerState &FingerState)
 
void SetInactive ()
 
bool IsActive () const
 
bool IsActive (const IInput::CTouchFinger &Finger) const
 
virtual CButtonLabel GetLabel () const =0
 
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 
virtual void OnUpdate ()
 
virtual void WriteToConfiguration (CJsonWriter *pWriter)=0
 

Public Attributes

CTouchButtonm_pTouchButton
 
CTouchControlsm_pTouchControls
 
bool m_Active
 
IInput::CTouchFinger m_Finger
 
vec2 m_ActivePosition
 
vec2 m_AccumulatedDelta
 
std::chrono::nanoseconds m_ActivationStartTime
 

Constructor & Destructor Documentation

◆ ~CTouchButtonBehavior()

virtual CTouchControls::CTouchButtonBehavior::~CTouchButtonBehavior ( )
virtualdefault

Member Function Documentation

◆ GetLabel()

◆ Init()

void CTouchControls::CTouchButtonBehavior::Init ( CTouchButton pTouchButton)
virtual

◆ IsActive() [1/2]

bool CTouchControls::CTouchButtonBehavior::IsActive ( ) const

◆ IsActive() [2/2]

bool CTouchControls::CTouchButtonBehavior::IsActive ( const IInput::CTouchFinger Finger) const

◆ OnActivate()

◆ OnDeactivate()

◆ OnUpdate()

virtual void CTouchControls::CTouchButtonBehavior::OnUpdate ( )
inlinevirtual

◆ Reset()

void CTouchControls::CTouchButtonBehavior::Reset ( )

◆ SetActive()

void CTouchControls::CTouchButtonBehavior::SetActive ( const IInput::CTouchFingerState FingerState)

◆ SetInactive()

void CTouchControls::CTouchButtonBehavior::SetInactive ( )

◆ WriteToConfiguration()

virtual void CTouchControls::CTouchButtonBehavior::WriteToConfiguration ( CJsonWriter pWriter)
pure virtual

Member Data Documentation

◆ m_AccumulatedDelta

vec2 CTouchControls::CTouchButtonBehavior::m_AccumulatedDelta

◆ m_ActivationStartTime

std::chrono::nanoseconds CTouchControls::CTouchButtonBehavior::m_ActivationStartTime

◆ m_Active

bool CTouchControls::CTouchButtonBehavior::m_Active

◆ m_ActivePosition

vec2 CTouchControls::CTouchButtonBehavior::m_ActivePosition

◆ m_Finger

IInput::CTouchFinger CTouchControls::CTouchButtonBehavior::m_Finger

◆ m_pTouchButton

CTouchButton* CTouchControls::CTouchButtonBehavior::m_pTouchButton

◆ m_pTouchControls

CTouchControls* CTouchControls::CTouchButtonBehavior::m_pTouchControls

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