mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-30 00:08:34 +00:00
ExpressionParser: Renamed ControlFinder to ControlEnvironment. Added support for variables and assignment operator. ControlExpression objects now reference a matching input and output so the two can me mixed in any expression. (you can set rumble directly from inputs)
This commit is contained in:
parent
1efcf861ea
commit
e896835f86
7 changed files with 144 additions and 46 deletions
|
@ -25,12 +25,12 @@ bool ControlReference::InputGateOn()
|
|||
// Updates a controlreference's binded devices/controls
|
||||
// need to call this to re-bind a control reference after changing its expression
|
||||
//
|
||||
void ControlReference::UpdateReference(const ciface::Core::DeviceContainer& devices,
|
||||
const ciface::Core::DeviceQualifier& default_device)
|
||||
void ControlReference::UpdateReference(ciface::ExpressionParser::ControlEnvironment& env)
|
||||
{
|
||||
ControlFinder finder(devices, default_device, IsInput());
|
||||
if (m_parsed_expression)
|
||||
m_parsed_expression->UpdateReferences(finder);
|
||||
{
|
||||
m_parsed_expression->UpdateReferences(env);
|
||||
}
|
||||
}
|
||||
|
||||
int ControlReference::BoundCount() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue