mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-28 05:06:42 +00:00
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:
parent
26ba8f5481
commit
fb3a727fcc
7 changed files with 192 additions and 39 deletions
|
@ -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;
|
||||
|
|
|
@ -29,11 +29,12 @@ public:
|
|||
void SetSelectedAttachment(u32 val);
|
||||
|
||||
NumericSetting<int>& GetSelectionSetting();
|
||||
SubscribableSettingValue<int>& GetAttachmentSetting();
|
||||
|
||||
const std::vector<std::unique_ptr<EmulatedController>>& GetAttachmentList() const;
|
||||
|
||||
private:
|
||||
SettingValue<int> m_selection_value;
|
||||
SubscribableSettingValue<int> m_selection_value;
|
||||
// This is here and not added to the list of numeric_settings because it's serialized differently,
|
||||
// by string (to be independent from the enum), and visualized differently in the UI.
|
||||
// For the rest, it's treated similarly to other numeric_settings in the group.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue