diff options
| author | 2021-11-04 12:08:54 -0600 | |
|---|---|---|
| committer | 2021-11-24 20:30:27 -0600 | |
| commit | 5d0f3540c4b085103afa27d6120ea29e0324a5a2 (patch) | |
| tree | 9cdfe756391969476385d3f391d74a6e75aa5889 /src/core/hid/emulated_controller.h | |
| parent | config: Cleanup and documentation (diff) | |
| download | yuzu-5d0f3540c4b085103afa27d6120ea29e0324a5a2.tar.gz yuzu-5d0f3540c4b085103afa27d6120ea29e0324a5a2.tar.xz yuzu-5d0f3540c4b085103afa27d6120ea29e0324a5a2.zip | |
core/hid: Rename NpadType to NpadStyleIndex
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index 9a8bdf14d..fa2e89c0b 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -142,23 +142,23 @@ public: | |||
| 142 | YUZU_NON_MOVEABLE(EmulatedController); | 142 | YUZU_NON_MOVEABLE(EmulatedController); |
| 143 | 143 | ||
| 144 | /// Converts the controller type from settings to npad type | 144 | /// Converts the controller type from settings to npad type |
| 145 | static NpadType MapSettingsTypeToNPad(Settings::ControllerType type); | 145 | static NpadStyleIndex MapSettingsTypeToNPad(Settings::ControllerType type); |
| 146 | 146 | ||
| 147 | /// Converts npad type to the equivalent of controller type from settings | 147 | /// Converts npad type to the equivalent of controller type from settings |
| 148 | static Settings::ControllerType MapNPadToSettingsType(NpadType type); | 148 | static Settings::ControllerType MapNPadToSettingsType(NpadStyleIndex type); |
| 149 | 149 | ||
| 150 | /// Gets the NpadIdType for this controller | 150 | /// Gets the NpadIdType for this controller |
| 151 | NpadIdType GetNpadIdType() const; | 151 | NpadIdType GetNpadIdType() const; |
| 152 | 152 | ||
| 153 | /// Sets the NpadType for this controller | 153 | /// Sets the NpadStyleIndex for this controller |
| 154 | void SetNpadType(NpadType npad_type_); | 154 | void SetNpadStyleIndex(NpadStyleIndex npad_type_); |
| 155 | 155 | ||
| 156 | /** | 156 | /** |
| 157 | * Gets the NpadType for this controller | 157 | * Gets the NpadStyleIndex for this controller |
| 158 | * @param If true tmp_npad_type will be returned | 158 | * @param If true tmp_npad_type will be returned |
| 159 | * @return NpadType set on the controller | 159 | * @return NpadStyleIndex set on the controller |
| 160 | */ | 160 | */ |
| 161 | NpadType GetNpadType(bool get_temporary_value = false) const; | 161 | NpadStyleIndex GetNpadStyleIndex(bool get_temporary_value = false) const; |
| 162 | 162 | ||
| 163 | /// Sets the connected status to true | 163 | /// Sets the connected status to true |
| 164 | void Connect(); | 164 | void Connect(); |
| @@ -351,14 +351,14 @@ private: | |||
| 351 | void TriggerOnChange(ControllerTriggerType type, bool is_service_update); | 351 | void TriggerOnChange(ControllerTriggerType type, bool is_service_update); |
| 352 | 352 | ||
| 353 | NpadIdType npad_id_type; | 353 | NpadIdType npad_id_type; |
| 354 | NpadType npad_type{NpadType::None}; | 354 | NpadStyleIndex npad_type{NpadStyleIndex::None}; |
| 355 | bool is_connected{false}; | 355 | bool is_connected{false}; |
| 356 | bool is_configuring{false}; | 356 | bool is_configuring{false}; |
| 357 | f32 motion_sensitivity{0.01f}; | 357 | f32 motion_sensitivity{0.01f}; |
| 358 | bool force_update_motion{false}; | 358 | bool force_update_motion{false}; |
| 359 | 359 | ||
| 360 | // Temporary values to avoid doing changes while the controller is on configuration mode | 360 | // Temporary values to avoid doing changes while the controller is on configuration mode |
| 361 | NpadType tmp_npad_type{NpadType::None}; | 361 | NpadStyleIndex tmp_npad_type{NpadStyleIndex::None}; |
| 362 | bool tmp_is_connected{false}; | 362 | bool tmp_is_connected{false}; |
| 363 | 363 | ||
| 364 | ButtonParams button_params; | 364 | ButtonParams button_params; |