Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
InputContextManager Class Reference

#include <InputDevice.h>

Public Member Functions

 InputContextManager ()
 
 ~InputContextManager ()=default
 
void PushContext (ActionMapContext ctx)
 
void PopContext ()
 
ActionMapContext GetActiveContext () const
 
bool IsEditorEnabled () const
 
void SetEditorEnabled (bool enabled)
 
void Initialize ()
 
void LoadConfig (const std::string &configPath)
 

Static Public Member Functions

static InputContextManagerGet ()
 

Private Attributes

bool m_editorEnabled = false
 
std::vector< ActionMapContextm_contextStack
 

Detailed Description

Definition at line 246 of file InputDevice.h.

Constructor & Destructor Documentation

◆ InputContextManager()

InputContextManager::InputContextManager ( )
inline

Definition at line 248 of file InputDevice.h.

References Gameplay.

◆ ~InputContextManager()

InputContextManager::~InputContextManager ( )
default

Member Function Documentation

◆ Get()

static InputContextManager & InputContextManager::Get ( )
inlinestatic

Definition at line 252 of file InputDevice.h.

References GetComponentTypeID_Static().

Referenced by InputsManager::GetContextManager(), InputsManager::InitializeInputSystem(), and InputConfigLoader::LoadEngineConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetActiveContext()

ActionMapContext InputContextManager::GetActiveContext ( ) const

Definition at line 445 of file InputDevice.cpp.

References Gameplay, and m_contextStack.

Referenced by SetEditorEnabled().

+ Here is the caller graph for this function:

◆ Initialize()

void InputContextManager::Initialize ( )

Definition at line 469 of file InputDevice.cpp.

References Gameplay, m_contextStack, and SYSTEM_LOG.

Referenced by InputsManager::InitializeInputSystem().

+ Here is the caller graph for this function:

◆ IsEditorEnabled()

bool InputContextManager::IsEditorEnabled ( ) const
inline

Definition at line 263 of file InputDevice.h.

References m_editorEnabled.

◆ LoadConfig()

void InputContextManager::LoadConfig ( const std::string &  configPath)

Definition at line 474 of file InputDevice.cpp.

References GetComponentTypeID_Static(), and SYSTEM_LOG.

+ Here is the call graph for this function:

◆ PopContext()

void InputContextManager::PopContext ( )

Definition at line 431 of file InputDevice.cpp.

References Editor, Gameplay, GetComponentTypeID_Static(), m_contextStack, SYSTEM_LOG, and UI.

Referenced by SetEditorEnabled().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PushContext()

void InputContextManager::PushContext ( ActionMapContext  ctx)

Definition at line 422 of file InputDevice.cpp.

References Editor, Gameplay, GetComponentTypeID_Static(), m_contextStack, SYSTEM_LOG, and UI.

Referenced by SetEditorEnabled().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetEditorEnabled()

void InputContextManager::SetEditorEnabled ( bool  enabled)

Definition at line 452 of file InputDevice.cpp.

References Editor, GetActiveContext(), m_editorEnabled, PopContext(), PushContext(), and SYSTEM_LOG.

Referenced by InputConfigLoader::LoadEngineConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_contextStack

std::vector<ActionMapContext> InputContextManager::m_contextStack
private

Definition at line 272 of file InputDevice.h.

Referenced by GetActiveContext(), Initialize(), PopContext(), and PushContext().

◆ m_editorEnabled

bool InputContextManager::m_editorEnabled = false
private

Definition at line 271 of file InputDevice.h.

Referenced by IsEditorEnabled(), and SetEditorEnabled().


The documentation for this class was generated from the following files: