![]() |
DDraceNetwork Documentation
|
#include <touch_controls.h>
Public Member Functions | |
| 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 CButtonLabel | GetLabel () const =0 |
| virtual void | OnActivate () |
| virtual void | OnDeactivate (bool ByFinger) |
| virtual void | OnUpdate () |
Static Public Attributes | |
| static constexpr const char *const | BEHAVIOR_TYPE = "predefined" |
Private Attributes | |
| const char * | m_pId |
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 |
Abstract class for predefined behaviors.
Subclasses must implemented the concrete behavior and provide the label.
|
inline |
|
inlineoverridevirtual |
Implements CTouchControls::CTouchButtonBehavior.
|
overridevirtual |
Implements the serialization for predefined behaviors. Subclasses may override this, but they should call the parent function first.
Implements CTouchControls::CTouchButtonBehavior.
|
staticconstexpr |