mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 23:08:47 +00:00
ControlReference: hide is_input behind function
This commit is contained in:
parent
813a725f68
commit
9a632ea7b9
3 changed files with 22 additions and 12 deletions
|
@ -32,7 +32,7 @@ void ControlReference::UpdateReference(ciface::Core::DeviceContainer& devices,
|
|||
delete parsed_expression;
|
||||
parsed_expression = nullptr;
|
||||
|
||||
ControlFinder finder(devices, default_device, is_input);
|
||||
ControlFinder finder(devices, default_device, IsInput());
|
||||
parse_error = ParseExpression(expression, finder, &parsed_expression);
|
||||
}
|
||||
|
||||
|
@ -48,19 +48,27 @@ int ControlReference::BoundCount() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
ControlReference::ControlReference(const bool _is_input)
|
||||
: range(1), is_input(_is_input), parsed_expression(nullptr)
|
||||
ControlReference::ControlReference() : range(1), parsed_expression(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
InputReference::InputReference() : ControlReference(true)
|
||||
InputReference::InputReference() : ControlReference()
|
||||
{
|
||||
}
|
||||
|
||||
OutputReference::OutputReference() : ControlReference(false)
|
||||
OutputReference::OutputReference() : ControlReference()
|
||||
{
|
||||
}
|
||||
|
||||
bool InputReference::IsInput() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
bool OutputReference::IsInput() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//
|
||||
// InputReference :: State
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue