mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 06:18:32 +00:00
InputCommon: Allow controller settings specified with input expresions.
This commit is contained in:
parent
6a857df219
commit
e8152b700f
13 changed files with 172 additions and 28 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "InputCommon/ControllerEmu/Control/Control.h"
|
||||
#include "InputCommon/ControllerEmu/ControlGroup/Attachments.h"
|
||||
#include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h"
|
||||
#include "InputCommon/ControllerEmu/Setting/NumericSetting.h"
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
|
||||
namespace ControllerEmu
|
||||
|
@ -54,6 +55,9 @@ void EmulatedController::UpdateReferences(ciface::ExpressionParser::ControlEnvir
|
|||
for (auto& control : ctrlGroup->controls)
|
||||
control->control_ref->UpdateReference(env);
|
||||
|
||||
for (auto& setting : ctrlGroup->numeric_settings)
|
||||
setting->GetInputReference().UpdateReference(env);
|
||||
|
||||
// Attachments:
|
||||
if (ctrlGroup->type == GroupType::Attachments)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue