diff options
author | german77 <juangerman-13@hotmail.com> | 2023-09-16 08:21:47 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-09-16 08:31:19 +0200 |
commit | 8950fe79ad0f1a10880556856eca9f987cdfd886 (patch) | |
tree | 8fed94e0fdad0043aa70af8ba4ba01793b658d12 /src/core/hid/hid_core.h | |
parent | service: hid: Ensure state is correct (diff) | |
download | yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.gz yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.bz2 yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.lz yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.xz yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.zst yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.zip |
Diffstat (limited to 'src/core/hid/hid_core.h')
-rw-r--r-- | src/core/hid/hid_core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hid/hid_core.h b/src/core/hid/hid_core.h index 5fe36551e..80abab18b 100644 --- a/src/core/hid/hid_core.h +++ b/src/core/hid/hid_core.h @@ -48,6 +48,12 @@ public: /// Returns the first disconnected npad id NpadIdType GetFirstDisconnectedNpadId() const; + /// Sets the npad id of the last active controller + void SetLastActiveController(NpadIdType npad_id); + + /// Returns the npad id of the last controller that pushed a button + NpadIdType GetLastActiveController() const; + /// Sets all emulated controllers into configuring mode. void EnableAllControllerConfiguration(); @@ -77,6 +83,7 @@ private: std::unique_ptr<EmulatedConsole> console; std::unique_ptr<EmulatedDevices> devices; NpadStyleTag supported_style_tag{NpadStyleSet::All}; + NpadIdType last_active_controller{NpadIdType::Handheld}; }; } // namespace Core::HID |