|
OpenEnroth 90c43ae
|
#include <KeyboardActionMapping.h>
Public Member Functions | |
| KeyboardActionMapping (std::shared_ptr< GameConfig > config) | |
| PlatformKey | keyFor (InputAction action) const |
| PlatformKey | gamepadKeyFor (InputAction action) const |
| bool | isBound (InputAction action, PlatformKey key) const |
| Keybindings | currentKeybindings (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::currentKeybindings | ( | KeybindingsQuery | query | ) | const |
| Io::Keybindings Io::KeyboardActionMapping::defaultKeybindings | ( | KeybindingsQuery | query | ) | const |
| PlatformKey Io::KeyboardActionMapping::gamepadKeyFor | ( | InputAction | action | ) | const |
| bool Io::KeyboardActionMapping::isBound | ( | InputAction | action, |
| PlatformKey | key | ||
| ) | const |
| PlatformKey Io::KeyboardActionMapping::keyFor | ( | InputAction | action | ) | const |
|
private |
|
private |
|
private |