diff options
author | german77 <juangerman-13@hotmail.com> | 2021-10-19 06:15:46 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-25 03:30:24 +0100 |
commit | 4d308fd0b4fc8f14754c47811e751bf068b330b8 (patch) | |
tree | 3ea29a0c024fdc9ad7681aaf6160e46511ceb2a6 /src/core/hid/emulated_controller.h | |
parent | core/hid: Documment some files (diff) | |
download | yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.gz yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.bz2 yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.lz yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.xz yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.tar.zst yuzu-4d308fd0b4fc8f14754c47811e751bf068b330b8.zip |
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: /// Sets the NpadType for this controller void SetNpadType(NpadType npad_type_); - /// Gets the NpadType for this controller - NpadType GetNpadType() const; + /** + * Gets the NpadType for this controller + * @param Returns the temporary value if true + * @return NpadType set on the controller + */ + NpadType GetNpadType(bool temporary = false) const; /// Sets the connected status to true void Connect(); @@ -148,8 +152,12 @@ public: /// Sets the connected status to false void Disconnect(); - /// Returns true if the controller has the connected status - bool IsConnected() const; + /** + * Is the emulated connected + * @param Returns the temporary value if true + * @return true if the controller has the connected status + */ + bool IsConnected(bool temporary = false) const; /// Returns true if vibration is enabled bool IsVibrationEnabled() const; @@ -323,7 +331,9 @@ private: NpadIdType npad_id_type; NpadType npad_type{NpadType::None}; + NpadType temporary_npad_type{NpadType::None}; bool is_connected{false}; + bool temporary_is_connected{false}; bool is_configuring{false}; bool is_vibration_enabled{true}; f32 motion_sensitivity{0.01f}; |