![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <InputConfigLoader.h>
Public Member Functions | |
| InputConfigLoader ()=default | |
| ~InputConfigLoader ()=default | |
| bool | LoadInputConfig (const std::string &path) |
| bool | LoadEngineConfig (const std::string &path) |
| bool | LoadProfileOverride (const std::string &path) |
| bool | SaveInputConfig (const std::string &path) |
Static Public Member Functions | |
| static InputConfigLoader & | Get () |
Private Member Functions | |
| bool | ParseProfiles (const json &j) |
| bool | ParseActionMaps (const json &j) |
| bool | ParseGlobalSettings (const json &j) |
| bool | ParseDefaultAssignments (const json &j) |
| InputBinding | ParseInputBinding (const json &j) |
| SDL_Scancode | ParseKeyName (const std::string &keyName) |
Private Attributes | |
| int | m_logLevel = 2 |
Definition at line 20 of file InputConfigLoader.h.
|
default |
|
default |
|
inlinestatic |
Definition at line 26 of file InputConfigLoader.h.
References GetComponentTypeID_Static().
Referenced by InputsManager::InitializeInputSystem().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 76 of file InputConfigLoader.cpp.
References InputDeviceManager::Get(), InputContextManager::Get(), GetComponentTypeID_Static(), m_logLevel, InputContextManager::SetEditorEnabled(), InputDeviceManager::SetLogLevel(), and SYSTEM_LOG.
Here is the call graph for this function:Definition at line 115 of file InputConfigLoader.cpp.
References GetComponentTypeID_Static(), ParseActionMaps(), ParseDefaultAssignments(), ParseGlobalSettings(), ParseProfiles(), and SYSTEM_LOG.
Here is the call graph for this function:Definition at line 367 of file InputConfigLoader.cpp.
References InputDeviceManager::Get(), GetComponentTypeID_Static(), InputDeviceManager::GetProfile(), m_logLevel, ParseInputBinding(), and SYSTEM_LOG.
Referenced by InputsManager::InitializeInputSystem().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 289 of file InputConfigLoader.cpp.
References InputDeviceManager::AddActionMap(), Editor, Gameplay, InputDeviceManager::Get(), GetComponentTypeID_Static(), m_logLevel, System, SYSTEM_LOG, and UI.
Referenced by LoadInputConfig().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 332 of file InputConfigLoader.cpp.
References InputDeviceManager::Get(), GetComponentTypeID_Static(), Joystick, KeyboardMouse, InputDeviceManager::SetDefaultProfile(), and SYSTEM_LOG.
Referenced by LoadInputConfig().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 352 of file InputConfigLoader.cpp.
References InputDeviceManager::Get(), GetComponentTypeID_Static(), InputDeviceManager::SetLogLevel(), and SYSTEM_LOG.
Referenced by LoadInputConfig().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 223 of file InputConfigLoader.cpp.
References Axis, Button, GetComponentTypeID_Static(), Key, MouseButton, ParseKeyName(), Stick, Trigger, and InputBinding::type.
Referenced by LoadProfileOverride(), and ParseProfiles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 60 of file InputConfigLoader.cpp.
References GetComponentTypeID_Static(), m_logLevel, s_keyNameMap, and SYSTEM_LOG.
Referenced by ParseInputBinding().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 162 of file InputConfigLoader.cpp.
References InputDeviceManager::AddProfile(), InputDeviceManager::Get(), GetComponentTypeID_Static(), Joystick, KeyboardMouse, m_logLevel, None, ParseInputBinding(), and SYSTEM_LOG.
Referenced by LoadInputConfig().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 419 of file InputConfigLoader.cpp.
References SYSTEM_LOG.
|
private |
Definition at line 54 of file InputConfigLoader.h.
Referenced by LoadEngineConfig(), LoadProfileOverride(), ParseActionMaps(), ParseKeyName(), and ParseProfiles().