OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Io::KeyboardActionMapping Class Reference

#include <KeyboardActionMapping.h>

Public Member Functions

 KeyboardActionMapping (std::shared_ptr< GameConfig > config)
 
void MapKey (InputAction action, PlatformKey key)
 
void MapKey (InputAction action, PlatformKey key, KeyToggleType type)
 
void MapGamepadKey (InputAction action, PlatformKey key)
 
PlatformKey MapDefaultKey (InputAction action)
 
PlatformKey GetKey (InputAction action) const
 
PlatformKey GetGamepadKey (InputAction action) const
 
KeyToggleType GetToggleType (InputAction action) const
 
bool IsKeyMatchAction (InputAction action, PlatformKey key) const
 
GameConfig::KeyInputActionToConfigKey (InputAction action)
 
PlatformKey ConfigDefaultKey (InputAction action)
 
PlatformKey ConfigGetKey (InputAction action)
 
void ConfigSetKey (InputAction action, PlatformKey key)
 
GameConfig::KeyInputActionToConfigGamepadKey (InputAction action)
 
PlatformKey ConfigDefaultGamepadKey (InputAction action)
 
PlatformKey ConfigGetGamepadKey (InputAction action)
 
void ConfigSetGamepadKey (InputAction action, PlatformKey key)
 
void ReadMappings ()
 
void StoreMappings ()
 
void SetDefaultMapping ()
 

Private Attributes

std::map< InputAction, PlatformKeyactionKeyMap
 
std::map< InputAction, PlatformKeygamepadKeyMap
 
std::map< InputAction, KeyToggleTypekeyToggleMap
 
std::shared_ptr< GameConfigconfig = nullptr
 

Constructor & Destructor Documentation

◆ KeyboardActionMapping()

Io::KeyboardActionMapping::KeyboardActionMapping ( std::shared_ptr< GameConfig config)
explicit

Member Function Documentation

◆ ConfigDefaultGamepadKey()

PlatformKey Io::KeyboardActionMapping::ConfigDefaultGamepadKey ( InputAction  action)

◆ ConfigDefaultKey()

PlatformKey Io::KeyboardActionMapping::ConfigDefaultKey ( InputAction  action)

◆ ConfigGetGamepadKey()

PlatformKey Io::KeyboardActionMapping::ConfigGetGamepadKey ( InputAction  action)

◆ ConfigGetKey()

PlatformKey Io::KeyboardActionMapping::ConfigGetKey ( InputAction  action)

◆ ConfigSetGamepadKey()

void Io::KeyboardActionMapping::ConfigSetGamepadKey ( InputAction  action,
PlatformKey  key 
)

◆ ConfigSetKey()

void Io::KeyboardActionMapping::ConfigSetKey ( InputAction  action,
PlatformKey  key 
)

◆ GetGamepadKey()

PlatformKey Io::KeyboardActionMapping::GetGamepadKey ( InputAction  action) const

◆ GetKey()

PlatformKey Io::KeyboardActionMapping::GetKey ( InputAction  action) const

◆ GetToggleType()

KeyToggleType Io::KeyboardActionMapping::GetToggleType ( InputAction  action) const

◆ InputActionToConfigGamepadKey()

GameConfig::Key * Io::KeyboardActionMapping::InputActionToConfigGamepadKey ( InputAction  action)

◆ InputActionToConfigKey()

GameConfig::Key * Io::KeyboardActionMapping::InputActionToConfigKey ( InputAction  action)

◆ IsKeyMatchAction()

bool Io::KeyboardActionMapping::IsKeyMatchAction ( InputAction  action,
PlatformKey  key 
) const

◆ MapDefaultKey()

PlatformKey Io::KeyboardActionMapping::MapDefaultKey ( InputAction  action)

◆ MapGamepadKey()

void Io::KeyboardActionMapping::MapGamepadKey ( InputAction  action,
PlatformKey  key 
)

◆ MapKey() [1/2]

void Io::KeyboardActionMapping::MapKey ( InputAction  action,
PlatformKey  key 
)

◆ MapKey() [2/2]

void Io::KeyboardActionMapping::MapKey ( InputAction  action,
PlatformKey  key,
KeyToggleType  type 
)

◆ ReadMappings()

void Io::KeyboardActionMapping::ReadMappings ( )

◆ SetDefaultMapping()

void Io::KeyboardActionMapping::SetDefaultMapping ( )

◆ StoreMappings()

void Io::KeyboardActionMapping::StoreMappings ( )

Member Data Documentation

◆ actionKeyMap

std::map<InputAction, PlatformKey> Io::KeyboardActionMapping::actionKeyMap
private

◆ config

std::shared_ptr<GameConfig> Io::KeyboardActionMapping::config = nullptr
private

◆ gamepadKeyMap

std::map<InputAction, PlatformKey> Io::KeyboardActionMapping::gamepadKeyMap
private

◆ keyToggleMap

std::map<InputAction, KeyToggleType> Io::KeyboardActionMapping::keyToggleMap
private

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