OpenEnroth efd3b88
|
#include <KeyboardActionMapping.h>
Public Member Functions | |
KeyboardActionMapping (std::shared_ptr< GameConfig > config) | |
PlatformKey | keyFor (InputAction action) const |
PlatformKey | gamepadKeyFor (InputAction action) const |
KeyToggleType | toggleTypeFor (InputAction action) const |
bool | isBound (InputAction action, PlatformKey key) const |
Keybindings | keybindings (KeybindingsQuery query) const |
Keybindings | defaultKeybindings (KeybindingsQuery query) const |
void | applyKeybindings (const Keybindings &keybindings) |
Private Attributes | |
std::shared_ptr< GameConfig > | _config |
std::unordered_map< InputAction, KeyConfigEntry * > | _keyboardEntryByInputAction |
std::unordered_map< InputAction, KeyConfigEntry * > | _gamepadEntryByInputAction |
|
explicit |
void Io::KeyboardActionMapping::applyKeybindings | ( | const Keybindings & | keybindings | ) |
Io::Keybindings Io::KeyboardActionMapping::defaultKeybindings | ( | KeybindingsQuery | query | ) | const |
PlatformKey Io::KeyboardActionMapping::gamepadKeyFor | ( | InputAction | action | ) | const |
bool Io::KeyboardActionMapping::isBound | ( | InputAction | action, |
PlatformKey | key | ||
) | const |
Io::Keybindings Io::KeyboardActionMapping::keybindings | ( | KeybindingsQuery | query | ) | const |
PlatformKey Io::KeyboardActionMapping::keyFor | ( | InputAction | action | ) | const |
KeyToggleType Io::KeyboardActionMapping::toggleTypeFor | ( | InputAction | action | ) | const |
|
private |
|
private |
|
private |