diff options
| author | Dentomologist <dentomologist@gmail.com> | 2024-04-08 16:58:32 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2025-01-18 14:15:20 -0800 |
| commit | fb3a727fcc753f298f0c648c8fffc35ca4ae1bec (patch) | |
| tree | cd4fbd998816811bc5b3b119fb9d5dd378d0d53d /Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp | |
| parent | 26ba8f54812d94c49085396db0d26357036edf74 (diff) | |
WiiTASInputWindow: Update controls when attachment changes
Change the displayed controls in the TAS Input window when the
controller's extension (including MotionPlus) is changed.
This previously required restarting Dolphin after the attachment was
changed, as the controls were never updated after the WiiTASInputWindow
was created at Dolphin startup.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp index 42e1acff5b..b4bb1699c0 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Attachments.cpp @@ -35,6 +35,11 @@ NumericSetting<int>& Attachments::GetSelectionSetting() return m_selection_setting; } +SubscribableSettingValue<int>& Attachments::GetAttachmentSetting() +{ + return m_selection_value; +} + const std::vector<std::unique_ptr<EmulatedController>>& Attachments::GetAttachmentList() const { return m_attachments; |
