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

Public Member Functions

 CJoystickTouchButtonBehavior (const char *pId)
 
CButtonLabel GetLabel () const override
 
void OnActivate () override
 
void OnDeactivate () override
 
void OnUpdate () override
 
int ActiveAction () const
 
virtual int SelectedAction () const =0
 
- Public Member Functions inherited from CTouchControls::CPredefinedTouchButtonBehavior
 CPredefinedTouchButtonBehavior (const char *pId)
 
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
 

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
 
- Static Public Attributes inherited from CTouchControls::CPredefinedTouchButtonBehavior
static constexpr const char *const BEHAVIOR_TYPE = "predefined"
 

Constructor & Destructor Documentation

◆ CJoystickTouchButtonBehavior()

CTouchControls::CJoystickTouchButtonBehavior::CJoystickTouchButtonBehavior ( const char *  pId)
inline

Member Function Documentation

◆ ActiveAction()

int CTouchControls::CJoystickTouchButtonBehavior::ActiveAction ( ) const
inline

◆ GetLabel()

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

◆ OnActivate()

void CTouchControls::CJoystickTouchButtonBehavior::OnActivate ( )
overridevirtual

◆ OnDeactivate()

void CTouchControls::CJoystickTouchButtonBehavior::OnDeactivate ( )
overridevirtual

◆ OnUpdate()

void CTouchControls::CJoystickTouchButtonBehavior::OnUpdate ( )
overridevirtual

◆ SelectedAction()

Member Data Documentation

◆ m_ActiveAction

int CTouchControls::CJoystickTouchButtonBehavior::m_ActiveAction = NUM_ACTIONS
private

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