#include <C4PlayerControl.h>
Public Types | |
enum | TriggerModes { CTM_Default = 0 , CTM_Hold = 1 << 0 , CTM_Release = 1 << 1 , CTM_AlwaysUnhandled = 1 << 2 , CTM_HandleDownStatesOnly = 1 << 3 , CTM_ClearRecentKeys = 1 << 4 } |
Definition at line 142 of file C4PlayerControl.h.
Enumerator | |
---|---|
CTM_Default | |
CTM_Hold | |
CTM_Release | |
CTM_AlwaysUnhandled | |
CTM_HandleDownStatesOnly | |
CTM_ClearRecentKeys |
Definition at line 146 of file C4PlayerControl.h.
|
inline |
Definition at line 190 of file C4PlayerControl.h.
|
default |
void C4PlayerControlAssignment::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 206 of file C4PlayerControl.cpp.
References CTM_AlwaysUnhandled, CTM_ClearRecentKeys, CTM_Default, CTM_Hold, CTM_Release, StdCompiler::excNotFound(), StdCompiler::isDeserializer(), mkNamingAdapt(), mkParAdapt(), mkSTLContainerAdapt(), StdCompiler::Name(), StdCompiler::NameEnd(), StdCompiler::RCT_All, StdCompiler::RCT_Idtf, and StdCompiler::Value().
void C4PlayerControlAssignment::CopyKeyFrom | ( | const C4PlayerControlAssignment & | src_assignment | ) |
Definition at line 257 of file C4PlayerControl.cpp.
Referenced by ResetKeyToInherited().
|
inline |
Definition at line 209 of file C4PlayerControl.h.
Referenced by GetGUIDesc(), and GetGUIName().
|
inline |
Definition at line 208 of file C4PlayerControl.h.
References StdStrBuf::getData().
Referenced by ResolveRefs().
const char * C4PlayerControlAssignment::GetGUIDesc | ( | const C4PlayerControlDefs & | defs | ) | const |
Definition at line 456 of file C4PlayerControl.cpp.
References GetControl(), C4PlayerControlDefs::GetControlByIndex(), StdStrBuf::getData(), C4PlayerControlDef::GetGUIDesc(), and StdStrBuf::getLength().
int32_t C4PlayerControlAssignment::GetGUIGroup | ( | ) | const |
Definition at line 472 of file C4PlayerControl.cpp.
const char * C4PlayerControlAssignment::GetGUIName | ( | const C4PlayerControlDefs & | defs | ) | const |
Definition at line 440 of file C4PlayerControl.cpp.
References GetControl(), C4PlayerControlDefs::GetControlByIndex(), StdStrBuf::getData(), C4PlayerControlDef::GetGUIName(), and StdStrBuf::getLength().
|
inline |
Definition at line 222 of file C4PlayerControl.h.
StdStrBuf C4PlayerControlAssignment::GetKeysAsString | ( | bool | human_readable, |
bool | short_name | ||
) | const |
Definition at line 422 of file C4PlayerControl.cpp.
References StdStrBuf::Append(), StdStrBuf::AppendChar(), and StdStrBuf::Take().
|
inline |
Definition at line 218 of file C4PlayerControl.h.
|
inline |
Definition at line 217 of file C4PlayerControl.h.
|
inline |
Definition at line 219 of file C4PlayerControl.h.
Referenced by IsComboMatched().
|
inline |
bool C4PlayerControlAssignment::IsComboMatched | ( | const C4PlayerControlRecentKeyList & | DownKeys, |
const C4PlayerControlRecentKeyList & | RecentKeys | ||
) | const |
Definition at line 363 of file C4PlayerControl.cpp.
References HasCombo(), C4KeyCodeEx::Key, Key_GetMouseEvent(), Key_IsMouse(), KEY_MOUSE_Move, C4PlayerControlRecentKey::matched_key, C4PlayerControl::MaxSequenceKeyDelay, C4TimeMilliseconds::Now(), and C4PlayerControlRecentKey::tTime.
bool C4PlayerControlAssignment::IsGUIDisabled | ( | ) | const |
Definition at line 467 of file C4PlayerControl.cpp.
|
inline |
Definition at line 221 of file C4PlayerControl.h.
bool C4PlayerControlAssignment::IsKeyChanged | ( | ) | const |
Definition at line 238 of file C4PlayerControl.cpp.
|
inline |
Definition at line 220 of file C4PlayerControl.h.
|
inline |
Definition at line 214 of file C4PlayerControl.h.
Referenced by ResolveRefs().
|
inline |
Definition at line 207 of file C4PlayerControl.h.
bool C4PlayerControlAssignment::operator== | ( | const C4PlayerControlAssignment & | cmp | ) | const |
Definition at line 410 of file C4PlayerControl.cpp.
void C4PlayerControlAssignment::ResetKeyToInherited | ( | ) |
Definition at line 233 of file C4PlayerControl.cpp.
References CopyKeyFrom().
|
inline |
Definition at line 215 of file C4PlayerControl.h.
bool C4PlayerControlAssignment::ResolveRefs | ( | class C4PlayerControlAssignmentSet * | pParentSet, |
C4PlayerControlDefs * | pControlDefs | ||
) |
Definition at line 266 of file C4PlayerControl.cpp.
References FormatString(), C4PlayerControlAssignmentSet::GetAssignmentByControlName(), C4PlayerControlDefs::GetControlIndexByIdentifier(), GetControlName(), StdStrBuf::getData(), C4PlayerControlAssignmentSet::GetName(), IsRefsResolved(), C4KeyCodeEx::Key, KEY_Default, KEYS_Control, KEYS_Shift, LogF(), LogFatal(), ResolveRefs(), SCharLastPos(), and SEqual2().
Referenced by ResolveRefs().
|
inline |
Definition at line 203 of file C4PlayerControl.h.
References StdStrBuf::Copy().
|
inline |
Definition at line 199 of file C4PlayerControl.h.
|
inline |
Definition at line 200 of file C4PlayerControl.h.
void C4PlayerControlAssignment::SetKey | ( | const C4KeyCodeEx & | key | ) |
Definition at line 246 of file C4PlayerControl.cpp.