![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <InputDevice.h>
Static Public Member Functions | |
| static InputDeviceManager & | Get () |
Private Member Functions | |
| InputDeviceSlot * | FindFirstAvailableDevice () |
Private Attributes | |
| std::unordered_map< int, InputDeviceSlot > | m_deviceSlots |
| std::unordered_map< short, int > | m_playerAssignments |
| std::unordered_map< std::string, std::shared_ptr< InputProfile > > | m_profiles |
| std::unordered_map< InputDeviceType, std::string > | m_defaultProfiles |
| std::vector< ActionMap > | m_actionMaps |
| int | m_logLevel = 2 |
Definition at line 177 of file InputDevice.h.
|
default |
|
default |
Definition at line 339 of file InputDevice.cpp.
References GetComponentTypeID_Static(), m_actionMaps, m_logLevel, and SYSTEM_LOG.
Referenced by InputsManager::InitializeInputSystem(), and InputConfigLoader::ParseActionMaps().
Here is the call graph for this function:
Here is the caller graph for this function:| void InputDeviceManager::AddProfile | ( | std::shared_ptr< InputProfile > | profile | ) |
Definition at line 315 of file InputDevice.cpp.
References m_logLevel, m_profiles, and SYSTEM_LOG.
Referenced by InputsManager::InitializeInputSystem(), and InputConfigLoader::ParseProfiles().
Here is the caller graph for this function:Definition at line 209 of file InputDevice.cpp.
References InputDeviceSlot::assignedPlayerID, GetComponentTypeID_Static(), m_deviceSlots, m_logLevel, m_playerAssignments, and SYSTEM_LOG.
Here is the call graph for this function:| InputDeviceSlot * InputDeviceManager::AutoAssignDevice | ( | short | playerID | ) |
Definition at line 172 of file InputDevice.cpp.
References InputDeviceSlot::deviceName, FindFirstAvailableDevice(), GetComponentTypeID_Static(), Joystick, m_deviceSlots, m_logLevel, m_playerAssignments, and SYSTEM_LOG.
Here is the call graph for this function:
|
private |
Definition at line 398 of file InputDevice.cpp.
References GetComponentTypeID_Static(), Joystick, KeyboardMouse, and m_deviceSlots.
Referenced by AutoAssignDevice().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 183 of file InputDevice.h.
References GetComponentTypeID_Static().
Referenced by InputsManager::GetDeviceManager(), InputsManager::HandleEvent(), InputsManager::InitializeInputSystem(), InputConfigLoader::LoadEngineConfig(), InputConfigLoader::LoadProfileOverride(), InputConfigLoader::ParseActionMaps(), InputConfigLoader::ParseDefaultAssignments(), InputConfigLoader::ParseGlobalSettings(), and InputConfigLoader::ParseProfiles().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 347 of file InputDevice.cpp.
References GetComponentTypeID_Static(), and m_actionMaps.
Here is the call graph for this function:| std::vector< ActionMap * > InputDeviceManager::GetActionMapsForContext | ( | ActionMapContext | context | ) |
Definition at line 356 of file InputDevice.cpp.
References GetComponentTypeID_Static(), and m_actionMaps.
Here is the call graph for this function:| std::vector< InputDeviceSlot * > InputDeviceManager::GetAllDevices | ( | ) |
Definition at line 306 of file InputDevice.cpp.
References GetComponentTypeID_Static(), and m_deviceSlots.
Here is the call graph for this function:| std::vector< InputDeviceSlot * > InputDeviceManager::GetAvailableDevices | ( | ) |
Definition at line 295 of file InputDevice.cpp.
References GetComponentTypeID_Static(), and m_deviceSlots.
Here is the call graph for this function:| InputDeviceSlot * InputDeviceManager::GetDeviceForPlayer | ( | short | playerID | ) |
Definition at line 273 of file InputDevice.cpp.
References GetComponentTypeID_Static(), m_deviceSlots, and m_playerAssignments.
Referenced by InputMappingSystem::Process().
Here is the call graph for this function:
Here is the caller graph for this function:| const InputDeviceSlot * InputDeviceManager::GetDeviceForPlayer | ( | short | playerID | ) | const |
Definition at line 284 of file InputDevice.cpp.
References GetComponentTypeID_Static(), m_deviceSlots, and m_playerAssignments.
Here is the call graph for this function:| std::shared_ptr< InputProfile > InputDeviceManager::GetProfile | ( | const std::string & | profileName | ) |
Definition at line 322 of file InputDevice.cpp.
References GetComponentTypeID_Static(), and m_profiles.
Referenced by InputConfigLoader::LoadProfileOverride(), and RegisterDevice().
Here is the call graph for this function:
Here is the caller graph for this function:| void InputDeviceManager::LogDeviceStatus | ( | ) | const |
Definition at line 381 of file InputDevice.cpp.
References GetComponentTypeID_Static(), Joystick, m_deviceSlots, and SYSTEM_LOG.
Referenced by InputsManager::InitializeInputSystem().
Here is the call graph for this function:
Here is the caller graph for this function:| void InputDeviceManager::RegisterDevice | ( | const InputDeviceSlot & | slot | ) |
Definition at line 132 of file InputDevice.cpp.
References GetComponentTypeID_Static(), GetProfile(), Joystick, m_defaultProfiles, m_deviceSlots, m_logLevel, and SYSTEM_LOG.
Referenced by InputsManager::HandleEvent(), and InputsManager::InitializeInputSystem().
Here is the call graph for this function:
Here is the caller graph for this function:| void InputDeviceManager::SetDefaultProfile | ( | InputDeviceType | deviceType, |
| const std::string & | profileName | ||
| ) |
Definition at line 330 of file InputDevice.cpp.
References Joystick, m_defaultProfiles, m_logLevel, and SYSTEM_LOG.
Referenced by InputsManager::InitializeInputSystem(), and InputConfigLoader::ParseDefaultAssignments().
Here is the caller graph for this function:Definition at line 372 of file InputDevice.cpp.
References GetComponentTypeID_Static(), m_logLevel, and SYSTEM_LOG.
Referenced by InputConfigLoader::LoadEngineConfig(), and InputConfigLoader::ParseGlobalSettings().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 249 of file InputDevice.cpp.
References GetComponentTypeID_Static(), m_deviceSlots, m_logLevel, m_playerAssignments, and SYSTEM_LOG.
Here is the call graph for this function:Definition at line 155 of file InputDevice.cpp.
References GetComponentTypeID_Static(), m_deviceSlots, m_logLevel, m_playerAssignments, and SYSTEM_LOG.
Referenced by InputsManager::HandleEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 233 of file InputDevice.h.
Referenced by AddActionMap(), GetActionMap(), and GetActionMapsForContext().
|
private |
Definition at line 230 of file InputDevice.h.
Referenced by RegisterDevice(), and SetDefaultProfile().
|
private |
Definition at line 221 of file InputDevice.h.
Referenced by AssignDeviceToPlayer(), AutoAssignDevice(), FindFirstAvailableDevice(), GetAllDevices(), GetAvailableDevices(), GetDeviceForPlayer(), GetDeviceForPlayer(), LogDeviceStatus(), RegisterDevice(), UnassignDevice(), and UnregisterDevice().
|
private |
Definition at line 236 of file InputDevice.h.
Referenced by AddActionMap(), AddProfile(), AssignDeviceToPlayer(), AutoAssignDevice(), RegisterDevice(), SetDefaultProfile(), SetLogLevel(), UnassignDevice(), and UnregisterDevice().
Definition at line 224 of file InputDevice.h.
Referenced by AssignDeviceToPlayer(), AutoAssignDevice(), GetDeviceForPlayer(), GetDeviceForPlayer(), UnassignDevice(), and UnregisterDevice().
|
private |
Definition at line 227 of file InputDevice.h.
Referenced by AddProfile(), and GetProfile().