|
VGamepad PC
The PC app for the virtual game controller.
|
#include <keymap_profile.hpp>
Public Member Functions | |
| KeymapProfile ()=default | |
| ~KeymapProfile () final=default | |
| KeymapProfile (const KeymapProfile &)=default | |
| KeymapProfile & | operator= (const KeymapProfile &)=default |
| bool | load (const QString &profilePath) noexcept |
| bool | save (const QString &profilePath) const |
| InputKeyCode | buttonMap (GamepadButtons btn) const |
| void | setButtonInput (GamepadButtons btn, InputKeyCode vk, const QString &displayName) |
| QString | buttonDisplayName (GamepadButtons btn) const |
| ButtonInput | buttonInput (GamepadButtons button) const |
| void | setThumbstickInput (Thumbstick thumb, const ThumbstickInput &input) |
| ThumbstickInput | thumbstickInput (Thumbstick thumb) const |
| void | setTriggerInput (Trigger trigger, const TriggerInput &input) |
| TriggerInput | triggerInput (Trigger trigger) const |
| void | setLeftThumbMouseMove (bool enabled) |
| bool | leftThumbMouseMove () const |
| void | setRightThumbMouseMove (bool enabled) |
| bool | rightThumbMouseMove () const |
| void | initializeDefaultMappings () |
Public Attributes | |
| std::map< GamepadButtons, InputKeyCode > | buttonMappings |
| std::map< GamepadButtons, QString > | buttonDisplayNames |
| std::map< Thumbstick, ThumbstickInput > | thumbstickMappings |
| std::map< Trigger, TriggerInput > | triggerMappings |
Private Member Functions | |
| void | loadFromSettings (QSettings const &settings) |
| void | saveToSettings (QSettings &settings) const |
|
default |
|
finaldefault |
|
default |
| QString KeymapProfile::buttonDisplayName | ( | GamepadButtons | btn | ) | const |
| ButtonInput KeymapProfile::buttonInput | ( | GamepadButtons | button | ) | const |
| InputKeyCode KeymapProfile::buttonMap | ( | GamepadButtons | btn | ) | const |
| void KeymapProfile::initializeDefaultMappings | ( | ) |
| bool KeymapProfile::leftThumbMouseMove | ( | ) | const |
|
noexcept |
|
private |
|
default |
| bool KeymapProfile::rightThumbMouseMove | ( | ) | const |
| bool KeymapProfile::save | ( | const QString & | profilePath | ) | const |
|
private |
| void KeymapProfile::setButtonInput | ( | GamepadButtons | btn, |
| InputKeyCode | vk, | ||
| const QString & | displayName ) |
| void KeymapProfile::setLeftThumbMouseMove | ( | bool | enabled | ) |
| void KeymapProfile::setRightThumbMouseMove | ( | bool | enabled | ) |
| void KeymapProfile::setThumbstickInput | ( | Thumbstick | thumb, |
| const ThumbstickInput & | input ) |
| void KeymapProfile::setTriggerInput | ( | Trigger | trigger, |
| const TriggerInput & | input ) |
| ThumbstickInput KeymapProfile::thumbstickInput | ( | Thumbstick | thumb | ) | const |
| TriggerInput KeymapProfile::triggerInput | ( | Trigger | trigger | ) | const |
| std::map<GamepadButtons, QString> KeymapProfile::buttonDisplayNames |
| std::map<GamepadButtons, InputKeyCode> KeymapProfile::buttonMappings |
| std::map<Thumbstick, ThumbstickInput> KeymapProfile::thumbstickMappings |
| std::map<Trigger, TriggerInput> KeymapProfile::triggerMappings |