diff options
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index 096fe1705..6a6dc1892 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -139,8 +139,12 @@ public: | |||
| 139 | /// Sets the NpadType for this controller | 139 | /// Sets the NpadType for this controller |
| 140 | void SetNpadType(NpadType npad_type_); | 140 | void SetNpadType(NpadType npad_type_); |
| 141 | 141 | ||
| 142 | /// Gets the NpadType for this controller | 142 | /** |
| 143 | NpadType GetNpadType() const; | 143 | * Gets the NpadType for this controller |
| 144 | * @param Returns the temporary value if true | ||
| 145 | * @return NpadType set on the controller | ||
| 146 | */ | ||
| 147 | NpadType GetNpadType(bool temporary = false) const; | ||
| 144 | 148 | ||
| 145 | /// Sets the connected status to true | 149 | /// Sets the connected status to true |
| 146 | void Connect(); | 150 | void Connect(); |
| @@ -148,8 +152,12 @@ public: | |||
| 148 | /// Sets the connected status to false | 152 | /// Sets the connected status to false |
| 149 | void Disconnect(); | 153 | void Disconnect(); |
| 150 | 154 | ||
| 151 | /// Returns true if the controller has the connected status | 155 | /** |
| 152 | bool IsConnected() const; | 156 | * Is the emulated connected |
| 157 | * @param Returns the temporary value if true | ||
| 158 | * @return true if the controller has the connected status | ||
| 159 | */ | ||
| 160 | bool IsConnected(bool temporary = false) const; | ||
| 153 | 161 | ||
| 154 | /// Returns true if vibration is enabled | 162 | /// Returns true if vibration is enabled |
| 155 | bool IsVibrationEnabled() const; | 163 | bool IsVibrationEnabled() const; |
| @@ -323,7 +331,9 @@ private: | |||
| 323 | 331 | ||
| 324 | NpadIdType npad_id_type; | 332 | NpadIdType npad_id_type; |
| 325 | NpadType npad_type{NpadType::None}; | 333 | NpadType npad_type{NpadType::None}; |
| 334 | NpadType temporary_npad_type{NpadType::None}; | ||
| 326 | bool is_connected{false}; | 335 | bool is_connected{false}; |
| 336 | bool temporary_is_connected{false}; | ||
| 327 | bool is_configuring{false}; | 337 | bool is_configuring{false}; |
| 328 | bool is_vibration_enabled{true}; | 338 | bool is_vibration_enabled{true}; |
| 329 | f32 motion_sensitivity{0.01f}; | 339 | f32 motion_sensitivity{0.01f}; |