diff --git a/Source/Core/InputCommon/ControlReference/ControlReference.cpp b/Source/Core/InputCommon/ControlReference/ControlReference.cpp index 1151dedfe4..8f0fd5164c 100644 --- a/Source/Core/InputCommon/ControlReference/ControlReference.cpp +++ b/Source/Core/InputCommon/ControlReference/ControlReference.cpp @@ -26,7 +26,7 @@ bool ControlReference::InputGateOn() // Updates a controlreference's binded devices/controls // need to call this to re-parse a control reference's expression after changing it // -void ControlReference::UpdateReference(ciface::Core::DeviceContainer& devices, +void ControlReference::UpdateReference(const ciface::Core::DeviceContainer& devices, const ciface::Core::DeviceQualifier& default_device) { Expression* expr; diff --git a/Source/Core/InputCommon/ControlReference/ControlReference.h b/Source/Core/InputCommon/ControlReference/ControlReference.h index fd45ce8b7c..2e7f43fe65 100644 --- a/Source/Core/InputCommon/ControlReference/ControlReference.h +++ b/Source/Core/InputCommon/ControlReference/ControlReference.h @@ -32,7 +32,7 @@ public: int BoundCount() const; ciface::ExpressionParser::ExpressionParseStatus GetParseStatus() const; - void UpdateReference(ciface::Core::DeviceContainer& devices, + void UpdateReference(const ciface::Core::DeviceContainer& devices, const ciface::Core::DeviceQualifier& default_device); ControlState range; diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp index 2aa65b3d42..ce09966d2d 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp @@ -30,7 +30,7 @@ std::unique_lock EmulatedController::GetStateLock() return lock; } -void EmulatedController::UpdateReferences(ControllerInterface& devi) +void EmulatedController::UpdateReferences(const ControllerInterface& devi) { const auto lock = GetStateLock(); for (auto& ctrlGroup : groups) diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h index 24f4434dcb..15fb2afd3f 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h +++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h @@ -33,7 +33,7 @@ public: virtual void SaveConfig(IniFile::Section* sec, const std::string& base = ""); void UpdateDefaultDevice(); - void UpdateReferences(ControllerInterface& devi); + void UpdateReferences(const ControllerInterface& devi); // This returns a lock that should be held before calling State() on any control // references and GetState(), by extension. This prevents a race condition