mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
ControlReference: don't reparse expression when references are updated
This commit is contained in:
parent
c332580b83
commit
31f1c06226
8 changed files with 41 additions and 25 deletions
|
@ -216,7 +216,7 @@ public:
|
|||
// Keep a shared_ptr to the device so the control pointer doesn't become invalid
|
||||
std::shared_ptr<Device> m_device;
|
||||
|
||||
ControlExpression(ControlQualifier qualifier_) : qualifier(qualifier_) {}
|
||||
explicit ControlExpression(ControlQualifier qualifier_) : qualifier(qualifier_) {}
|
||||
ControlState GetValue() const override { return control ? control->ToInput()->GetState() : 0.0; }
|
||||
void SetValue(ControlState value) override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue