DDraceNetwork Documentation
Loading...
Searching...
No Matches
CTouchControls::CSwapActionTouchButtonBehavior Class Reference

#include <touch_controls.h>

Inheritance diagram for CTouchControls::CSwapActionTouchButtonBehavior:
[legend]
Collaboration diagram for CTouchControls::CSwapActionTouchButtonBehavior:
[legend]

Public Member Functions

 CSwapActionTouchButtonBehavior ()
CButtonLabel GetLabel () const override
void OnActivate () override
void OnDeactivate (bool ByFinger) override
Public Member Functions inherited from CTouchControls::CPredefinedTouchButtonBehavior
 CPredefinedTouchButtonBehavior (const char *pId)
void WriteToConfiguration (CJsonWriter *pWriter) override
const char * GetBehaviorType () const override
const char * GetPredefinedType ()
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 ByFinger)
bool IsActive () const
bool IsActive (const IInput::CTouchFinger &Finger) const
virtual void OnUpdate ()

Static Public Attributes

static constexpr const char *const BEHAVIOR_ID = "swap-action"
Static Public Attributes inherited from CTouchControls::CPredefinedTouchButtonBehavior
static constexpr const char *const BEHAVIOR_TYPE = "predefined"

Private Attributes

int m_ActiveAction = NUM_ACTIONS

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

Constructor & Destructor Documentation

◆ CSwapActionTouchButtonBehavior()

CTouchControls::CSwapActionTouchButtonBehavior::CSwapActionTouchButtonBehavior ( )
inline

Member Function Documentation

◆ GetLabel()

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

◆ OnActivate()

void CTouchControls::CSwapActionTouchButtonBehavior::OnActivate ( )
overridevirtual

◆ OnDeactivate()

void CTouchControls::CSwapActionTouchButtonBehavior::OnDeactivate ( bool ByFinger)
overridevirtual

Member Data Documentation

◆ BEHAVIOR_ID

const char* const CTouchControls::CSwapActionTouchButtonBehavior::BEHAVIOR_ID = "swap-action"
staticconstexpr

◆ m_ActiveAction

int CTouchControls::CSwapActionTouchButtonBehavior::m_ActiveAction = NUM_ACTIONS
private

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