![]() |
DDraceNetwork Documentation
|
#include <touch_controls.h>
Public Member Functions | |
| CBindTouchButtonBehavior (const char *pLabel, CButtonLabel::EType LabelType, const char *pCommand) | |
| CButtonLabel | GetLabel () const override |
| const char * | GetCommand () const |
| void | OnActivate () override |
| void | OnDeactivate (bool ByFinger) override |
| void | OnUpdate () 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 |
Static Public Attributes | |
| static constexpr const char *const | BEHAVIOR_TYPE = "bind" |
Private Attributes | |
| std::string | m_Label |
| CButtonLabel::EType | m_LabelType |
| std::string | m_Command |
| bool | m_Repeating = false |
| std::chrono::nanoseconds | m_LastUpdateTime |
| std::chrono::nanoseconds | m_AccumulatedRepeatingTime |
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 executes a console command like a bind.
|
inline |
|
inlineoverridevirtual |
Implements CTouchControls::CTouchButtonBehavior.
|
overridevirtual |
Implements CTouchControls::CTouchButtonBehavior.
|
overridevirtual |
Reimplemented from CTouchControls::CTouchButtonBehavior.
Reimplemented from CTouchControls::CTouchButtonBehavior.
|
overridevirtual |
Reimplemented from CTouchControls::CTouchButtonBehavior.
|
overridevirtual |
Implements CTouchControls::CTouchButtonBehavior.
|
staticconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |