![]() |
DDNet documentation
|
#include <binds.h>
Classes | |
| class | CBindsSpecial |
Public Member Functions | |
| CBinds () | |
| ~CBinds () override | |
| int | Sizeof () const override |
| void | Bind (int KeyId, const char *pStr, bool FreeOnly=false, int ModifierCombination=KeyModifier::NONE) |
| void | SetDefaults () |
| void | UnbindAll () |
| const char * | Get (int KeyId, int ModifierCombination) const |
| const char * | Get (const CBindSlot &BindSlot) const |
| void | GetKey (const char *pBindStr, char *pBuf, size_t BufSize) const |
| void | GetKeyBindName (int Key, int ModifierMask, char *pBuf, size_t BufSize) const |
| void | OnConsoleInit () override |
| bool | OnInput (const IInput::CEvent &Event) override |
| void | SetDDRaceBinds (bool FreeOnly) |
| Public Member Functions inherited from CComponent | |
| virtual void | OnStateChange (int NewState, int OldState) |
| virtual void | OnInit () |
| virtual void | OnShutdown () |
| virtual void | OnReset () |
| virtual void | OnWindowResize () |
| virtual void | OnUpdate () |
| virtual void | OnRender () |
| virtual void | OnNewSnapshot () |
| virtual void | OnRelease () |
| virtual void | OnMapLoad () |
| virtual void | OnMessage (int Msg, void *pRawMsg) |
| virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
| virtual bool | OnTouchState (std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| Public Member Functions inherited from CComponentInterfaces | |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| virtual | ~CComponentInterfaces ()=default |
Static Public Member Functions | |
| static int | GetModifierMask (IInput *pInput) |
| static int | GetModifierMaskOfKey (int Key) |
| static const char * | GetModifierName (int Modifier) |
Public Attributes | |
| bool | m_MouseOnAction |
| CBindsSpecial | m_SpecialBinds |
Private Member Functions | |
| CBindSlot | GetBindSlot (const char *pBindString) const |
| char * | GetKeyBindCommand (int ModifierCombination, int Key) const |
Static Private Member Functions | |
| static void | ConBind (IConsole::IResult *pResult, void *pUserData) |
| static void | ConBinds (IConsole::IResult *pResult, void *pUserData) |
| static void | ConUnbind (IConsole::IResult *pResult, void *pUserData) |
| static void | ConUnbindAll (IConsole::IResult *pResult, void *pUserData) |
| static void | ConfigSaveCallback (IConfigManager *pConfigManager, void *pUserData) |
Private Attributes | |
| char * | m_aapKeyBindings [KeyModifier::COMBINATION_COUNT][KEY_LAST] |
| std::vector< CBindSlot > | m_vActiveBinds |
Additional Inherited Members | |
| Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
| CBinds::CBinds | ( | ) |
|
override |
| void CBinds::Bind | ( | int | KeyId, |
| const char * | pStr, | ||
| bool | FreeOnly = false, | ||
| int | ModifierCombination = KeyModifier::NONE ) |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
| const char * CBinds::Get | ( | const CBindSlot & | BindSlot | ) | const |
| const char * CBinds::Get | ( | int | KeyId, |
| int | ModifierCombination ) const |
|
private |
| void CBinds::GetKey | ( | const char * | pBindStr, |
| char * | pBuf, | ||
| size_t | BufSize ) const |
|
private |
| void CBinds::GetKeyBindName | ( | int | Key, |
| int | ModifierMask, | ||
| char * | pBuf, | ||
| size_t | BufSize ) const |
|
static |
|
static |
|
static |
|
overridevirtual |
Called to let the components register their console commands.
Reimplemented from CComponent.
|
overridevirtual |
| void CBinds::SetDDRaceBinds | ( | bool | FreeOnly | ) |
| void CBinds::SetDefaults | ( | ) |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
| void CBinds::UnbindAll | ( | ) |
|
private |
| bool CBinds::m_MouseOnAction |
| CBindsSpecial CBinds::m_SpecialBinds |
|
private |