#include <C4KeyboardInput.h>
Public Member Functions | |
C4KeyBinding (const C4KeyCodeEx &DefCode, const char *szName, C4KeyScope Scope, C4KeyboardCallbackInterface *pCallback, unsigned int uiPriority=PRIO_Base) | |
C4KeyBinding (const CodeList &rDefCodes, const char *szName, C4KeyScope Scope, C4KeyboardCallbackInterface *pCallback, unsigned int uiPriority=PRIO_Base) | |
~C4KeyBinding () override | |
Protected Types | |
enum | Priority { PRIO_None = 0u , PRIO_Base = 1u , PRIO_Dlg = 2u , PRIO_Ctrl = 3u , PRIO_CtrlOverride = 4u , PRIO_FocusCtrl = 5u , PRIO_Context = 6u , PRIO_PlrControl = 7u , PRIO_MoreThanMax = 100u } |
typedef std::vector< C4KeyCodeEx > | CodeList |
Protected Member Functions | |
void | Ref () |
void | Deref () |
const CodeList & | GetCodes () const |
const StdStrBuf & | GetName () const |
C4KeyScope | GetScope () const |
unsigned int | GetPriority () const |
bool | IsCodeMatched (const C4KeyCodeEx &key) const |
void | Update (const C4CustomKey *pByKey) |
bool | Execute (C4KeyEventType eEv, C4KeyCodeEx key) |
bool | IsDown () const |
void | KillCallbacks (const C4CustomKey *pOfKey) |
void | CompileFunc (StdCompiler *pComp) |
Protected Attributes | |
CBVec | vecCallbacks |
int | iRef |
Definition at line 476 of file C4KeyboardInput.h.
|
inherited |
Definition at line 421 of file C4KeyboardInput.h.
|
inherited |
Enumerator | |
---|---|
PRIO_None | |
PRIO_Base | |
PRIO_Dlg | |
PRIO_Ctrl | |
PRIO_CtrlOverride | |
PRIO_FocusCtrl | |
PRIO_Context | |
PRIO_PlrControl | |
PRIO_MoreThanMax |
Definition at line 433 of file C4KeyboardInput.h.
C4KeyBinding::C4KeyBinding | ( | const C4KeyCodeEx & | DefCode, |
const char * | szName, | ||
C4KeyScope | Scope, | ||
C4KeyboardCallbackInterface * | pCallback, | ||
unsigned int | uiPriority = PRIO_Base |
||
) |
Definition at line 726 of file C4KeyboardInput.cpp.
References C4KeyboardInput_Init(), C4CustomKey::Ref(), and C4KeyboardInput::RegisterKey().
C4KeyBinding::C4KeyBinding | ( | const CodeList & | rDefCodes, |
const char * | szName, | ||
C4KeyScope | Scope, | ||
C4KeyboardCallbackInterface * | pCallback, | ||
unsigned int | uiPriority = PRIO_Base |
||
) |
Definition at line 735 of file C4KeyboardInput.cpp.
References C4KeyboardInput_Init(), C4CustomKey::Ref(), and C4KeyboardInput::RegisterKey().
|
override |
Definition at line 744 of file C4KeyboardInput.cpp.
References Game, C4CustomKey::iRef, C4KeyboardInput::IsValid, C4Game::KeyboardInput, and C4KeyboardInput::UnregisterKeyBinding().
|
inherited |
Definition at line 705 of file C4KeyboardInput.cpp.
References StdStrBuf::getData(), mkNamingAdapt(), mkSTLContainerAdapt(), and StdCompiler::Value().
|
inlineinherited |
Definition at line 457 of file C4KeyboardInput.h.
References C4CustomKey::iRef.
Referenced by C4KeyboardInput::RegisterKey(), and C4KeyboardInput::UnregisterKey().
|
inherited |
Definition at line 710 of file C4KeyboardInput.cpp.
References KEYEV_Down, and C4CustomKey::vecCallbacks.
Referenced by C4KeyboardInput::DoInput().
|
inlineinherited |
Definition at line 459 of file C4KeyboardInput.h.
Referenced by C4KeyboardInput::GetKeyCodeNameByKeyName(), C4CustomKey::IsCodeMatched(), C4KeyboardInput::RegisterKey(), and C4KeyboardInput::UnregisterKey().
|
inlineinherited |
Definition at line 460 of file C4KeyboardInput.h.
Referenced by C4CustomKey::C4CustomKey(), C4KeyboardInput::RegisterKey(), and C4KeyboardInput::UnregisterKeyBinding().
|
inlineinherited |
Definition at line 462 of file C4KeyboardInput.h.
Referenced by C4KeyboardInput::DoInput().
|
inlineinherited |
Definition at line 461 of file C4KeyboardInput.h.
Referenced by C4KeyboardInput::DoInput().
|
inherited |
Definition at line 668 of file C4KeyboardInput.cpp.
References C4CustomKey::GetCodes().
Referenced by C4KeyboardInput::DoInput().
|
inlineinherited |
Definition at line 468 of file C4KeyboardInput.h.
Referenced by C4KeyboardInput::DoInput().
|
inherited |
Definition at line 693 of file C4KeyboardInput.cpp.
References C4KeyboardCallbackInterface::Deref(), and C4CustomKey::vecCallbacks.
Referenced by C4KeyboardInput::UnregisterKeyBinding().
|
inlineinherited |
Definition at line 456 of file C4KeyboardInput.h.
References C4CustomKey::iRef.
Referenced by C4KeyBinding(), and C4KeyboardInput::RegisterKey().
|
inherited |
Definition at line 677 of file C4KeyboardInput.cpp.
References KEYSCOPE_None, C4CustomKey::PRIO_None, and C4CustomKey::vecCallbacks.
Referenced by C4KeyboardInput::RegisterKey().
|
protectedinherited |
Definition at line 447 of file C4KeyboardInput.h.
Referenced by C4CustomKey::Deref(), C4CustomKey::Ref(), and ~C4KeyBinding().
|
inherited |
Definition at line 431 of file C4KeyboardInput.h.
Referenced by C4CustomKey::C4CustomKey(), C4CustomKey::Execute(), C4CustomKey::KillCallbacks(), C4CustomKey::Update(), and C4CustomKey::~C4CustomKey().