mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-30 16:28:35 +00:00
ControlReference: move function bodies out of header
This commit is contained in:
parent
a509f56116
commit
813a725f68
2 changed files with 30 additions and 14 deletions
|
@ -36,6 +36,31 @@ void ControlReference::UpdateReference(ciface::Core::DeviceContainer& devices,
|
|||
parse_error = ParseExpression(expression, finder, &parsed_expression);
|
||||
}
|
||||
|
||||
ControlReference::~ControlReference()
|
||||
{
|
||||
delete parsed_expression;
|
||||
}
|
||||
int ControlReference::BoundCount() const
|
||||
{
|
||||
if (parsed_expression)
|
||||
return parsed_expression->num_controls;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
ControlReference::ControlReference(const bool _is_input)
|
||||
: range(1), is_input(_is_input), parsed_expression(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
InputReference::InputReference() : ControlReference(true)
|
||||
{
|
||||
}
|
||||
|
||||
OutputReference::OutputReference() : ControlReference(false)
|
||||
{
|
||||
}
|
||||
|
||||
//
|
||||
// InputReference :: State
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue