![]() |
DDraceNetwork Documentation
|
#include <touch_controls.h>
Classes | |
| class | CCommand |
Public Member Functions | |
| CBindToggleTouchButtonBehavior (std::vector< CCommand > &&vCommands) | |
| CButtonLabel | GetLabel () const override |
| std::vector< CCommand > | GetCommand () const |
| size_t | GetActiveCommandIndex () const |
| void | OnActivate () override |
| void | WriteToConfiguration (CJsonWriter *pWriter) override |
| const char * | GetBehaviorType () const 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 ByFinger) |
| bool | IsActive () const |
| bool | IsActive (const IInput::CTouchFinger &Finger) const |
| virtual void | OnDeactivate (bool ByFinger) |
| virtual void | OnUpdate () |
Static Public Attributes | |
| static constexpr const char *const | BEHAVIOR_TYPE = "bind-toggle" |
Private Attributes | |
| std::vector< CCommand > | m_vCommands |
| size_t | m_ActiveCommandIndex = 0 |
Additional Inherited Members | |
Public Attributes inherited from CTouchControls::CTouchButtonBehavior | |
| CTouchButton * | m_pTouchButton |
| CTouchControls * | m_pTouchControls |
| bool | m_Active |
| IInput::CTouchFinger | m_Finger |
| vec2 | m_ActivePosition |
| vec2 | m_AccumulatedDelta |
| std::chrono::nanoseconds | m_ActivationStartTime |
Generic behavior implementation that switches between executing one of two or more console commands.
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements CTouchControls::CTouchButtonBehavior.
|
inline |
|
overridevirtual |
Implements CTouchControls::CTouchButtonBehavior.
|
overridevirtual |
Reimplemented from CTouchControls::CTouchButtonBehavior.
|
overridevirtual |
Implements CTouchControls::CTouchButtonBehavior.
|
staticconstexpr |
|
private |
|
private |