#include <AInputMap.h>
Definition at line 96 of file AInputMap.h.
◆ BaseClass
◆ ThisClass
◆ AInputMap()
AInputMap::AInputMap |
( |
const Toshi::TPString8 & | a_rName | ) |
|
|
inline |
Definition at line 102 of file AInputMap.h.
104 {
105 }
static Toshi::T2Allocator * GetAllocator(POOL a_ePool)
◆ CreateTObject()
Toshi::TObject * AInputMap::CreateTObject |
( |
| ) |
|
|
static |
◆ CreateTObjectInPlace()
Toshi::TObject * AInputMap::CreateTObjectInPlace |
( |
void * | a_pPtr | ) |
|
|
static |
◆ DeinitialiseClass()
void AInputMap::DeinitialiseClass |
( |
| ) |
|
|
static |
◆ GetClass()
Toshi::TClass * AInputMap::GetClass |
( |
| ) |
|
|
overridevirtual |
◆ GetClassStatic()
static __forceinline Toshi::TClass * AInputMap::GetClassStatic |
( |
| ) |
|
|
inlinestatic |
◆ GetCommandMap()
Toshi::T2Map< Toshi::TInputDevice::Doodad, AInputCommand > & AInputMap::GetCommandMap |
( |
| ) |
|
|
inline |
Definition at line 110 of file AInputMap.h.
110{ return m_oDoodadToCommandMap; }
◆ GetName()
const Toshi::TPString8 & AInputMap::GetName |
( |
| ) |
const |
|
inline |
◆ InitialiseClass()
void AInputMap::InitialiseClass |
( |
| ) |
|
|
static |
◆ LoadFromProperties()
void AInputMap::LoadFromProperties |
( |
const PBProperties & | a_rProperties | ) |
|
Definition at line 13 of file AInputMap.cpp.
14{
15 m_oDoodadToCommandMap.Clear();
16
17 auto pInputManager = AInputMapManager::GetSingleton();
18
19 for (
auto it = a_rProperties.
Begin(); it != a_rProperties.
End(); it++ )
20 {
21 auto eCommandCode = pInputManager->GetCommandCode( Toshi::TPString8( it->GetName().GetString() ) );
22 auto pArray = it->GetValue()->GetArray();
23
24 for (
TUINT i = 0; i < pArray->GetSize(); i++ )
25 {
26 auto pValue = pArray->GetValue( i );
27 auto iDoodad = pInputManager->GetDoodadFromKey( pValue->GetTPString8() );
28
29 m_oDoodadToCommandMap.Insert( iDoodad, eCommandCode );
30 }
31 }
32}
◆ ms_oClass
◆ PARENTCLASS
Toshi::TClass* AInputMap::PARENTCLASS = & Toshi::TObject::ms_oClass |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- D:/_dev/OpenBarnyard/Source/OpenBarnyard/Source/Input/AInputMap.h
- D:/_dev/OpenBarnyard/Source/OpenBarnyard/Source/Input/AInputMap.cpp