DDraceNetwork Docs
CTouchControls::CBindToggleTouchButtonBehavior Class Reference
Inheritance diagram for CTouchControls::CBindToggleTouchButtonBehavior:
[legend]
Collaboration diagram for CTouchControls::CBindToggleTouchButtonBehavior:
[legend]

Classes

class  CCommand
 

Public Member Functions

 CBindToggleTouchButtonBehavior (std::vector< CCommand > &&vCommands)
 
CButtonLabel GetLabel () const override
 
void OnActivate () override
 
void WriteToConfiguration (CJsonWriter *pWriter) override
 
- Public Member Functions inherited from CTouchControls::CTouchButtonBehavior
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
 

Static Public Attributes

static constexpr const char *const BEHAVIOR_TYPE = "bind-toggle"
 

Private Attributes

std::vector< CCommandm_vCommands
 
size_t m_ActiveCommandIndex = 0
 

Additional Inherited Members

- Public Attributes inherited from CTouchControls::CTouchButtonBehavior
CTouchButtonm_pTouchButton
 
CTouchControlsm_pTouchControls
 
bool m_Active
 
IInput::CTouchFinger m_Finger
 
vec2 m_ActivePosition
 
vec2 m_AccumulatedDelta
 
std::chrono::nanoseconds m_ActivationStartTime
 

Detailed Description

Generic behavior implementation that switches between executing one of two or more console commands.

Constructor & Destructor Documentation

◆ CBindToggleTouchButtonBehavior()

CTouchControls::CBindToggleTouchButtonBehavior::CBindToggleTouchButtonBehavior ( std::vector< CCommand > &&  vCommands)
inline

Member Function Documentation

◆ GetLabel()

CTouchControls::CButtonLabel CTouchControls::CBindToggleTouchButtonBehavior::GetLabel ( ) const
overridevirtual

◆ OnActivate()

void CTouchControls::CBindToggleTouchButtonBehavior::OnActivate ( )
overridevirtual

◆ WriteToConfiguration()

void CTouchControls::CBindToggleTouchButtonBehavior::WriteToConfiguration ( CJsonWriter pWriter)
overridevirtual

Member Data Documentation

◆ BEHAVIOR_TYPE

constexpr const char* const CTouchControls::CBindToggleTouchButtonBehavior::BEHAVIOR_TYPE = "bind-toggle"
staticconstexpr

◆ m_ActiveCommandIndex

size_t CTouchControls::CBindToggleTouchButtonBehavior::m_ActiveCommandIndex = 0
private

◆ m_vCommands

std::vector<CCommand> CTouchControls::CBindToggleTouchButtonBehavior::m_vCommands
private

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