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.
This commit is contained in:
Dentomologist
2024-04-08 16:58:32 -07:00
parent 26ba8f5481
commit fb3a727fcc
7 changed files with 192 additions and 39 deletions

View File

@ -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;