InputCommon: Allow Wii remote extension to be set with an input expression.

This commit is contained in:
Jordan Woyak committed 2020-02-08 16:03:13 -06:00
1 parent e8152b700f
commit 0a1634bedf
12 files changed
+172 -64

No files matched your search

@@ -61,7 +61,11 @@ void EmulatedController::UpdateReferences(ciface::ExpressionParser::ControlEnvir
// Attachments:
if (ctrlGroup->type == GroupType::Attachments)
{
for (auto& attachment : static_cast<Attachments*>(ctrlGroup.get())->GetAttachmentList())
auto* const attachments = static_cast<Attachments*>(ctrlGroup.get());
attachments->GetSelectionSetting().GetInputReference().UpdateReference(env);
for (auto& attachment : attachments->GetAttachmentList())
attachment->UpdateReferences(env);
}
}