DDNet documentation
Loading...
Searching...
No Matches
CKeyBinder Class Reference

#include <key_binder.h>

Inheritance diagram for CKeyBinder:
[legend]
Collaboration diagram for CKeyBinder:
[legend]

Classes

class  CKeyReaderResult

Public Member Functions

int Sizeof () const override
bool OnInput (const IInput::CEvent &Event) override
CKeyReaderResult DoKeyReader (CButtonContainer *pReaderButton, CButtonContainer *pClearButton, const CUIRect *pRect, const CBindSlot &CurrentBind, bool Activate)
bool IsActive () const
bool HasPendingKeyReader () const
bool AbortPendingKey ()
Public Member Functions inherited from CComponent
virtual void OnStateChange (int NewState, int OldState)
virtual void OnConsoleInit ()
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

Private Attributes

const CButtonContainer * m_pKeyReaderId = nullptr
bool m_TakeKey = false
std::optional< CBindSlot > m_Key

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

Member Function Documentation

◆ AbortPendingKey()

bool CKeyBinder::AbortPendingKey ( )

◆ DoKeyReader()

CKeyBinder::CKeyReaderResult CKeyBinder::DoKeyReader ( CButtonContainer * pReaderButton,
CButtonContainer * pClearButton,
const CUIRect * pRect,
const CBindSlot & CurrentBind,
bool Activate )

◆ HasPendingKeyReader()

bool CKeyBinder::HasPendingKeyReader ( ) const
inline

◆ IsActive()

bool CKeyBinder::IsActive ( ) const

◆ OnInput()

bool CKeyBinder::OnInput ( const IInput::CEvent & Event)
overridevirtual

Called on a input event.

Parameters
EventThe input event.

Reimplemented from CComponent.

◆ Sizeof()

int CKeyBinder::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_Key

std::optional<CBindSlot> CKeyBinder::m_Key
private

◆ m_pKeyReaderId

const CButtonContainer* CKeyBinder::m_pKeyReaderId = nullptr
private

◆ m_TakeKey

bool CKeyBinder::m_TakeKey = false
private

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