mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
ExpressionParser: Add support for simple barewords control names
If an expression can't be parsed normally, we then look to see if it's a simple device name. This keeps backwards compatibility with simple input ocnfigurations, where people just used the Detect button.
This commit is contained in:
@ -41,22 +41,18 @@ private:
|
||||
bool is_input;
|
||||
};
|
||||
|
||||
class Parser;
|
||||
class ExpressionNode;
|
||||
class Expression
|
||||
{
|
||||
friend class Parser;
|
||||
|
||||
public:
|
||||
Expression() : expr(NULL) {}
|
||||
Expression() : node(NULL) {}
|
||||
Expression(ExpressionNode *node);
|
||||
~Expression();
|
||||
ControlState GetValue();
|
||||
void SetValue (ControlState state);
|
||||
int num_controls;
|
||||
bool is_complicated;
|
||||
|
||||
private:
|
||||
ExpressionNode *expr;
|
||||
ExpressionNode *node;
|
||||
};
|
||||
|
||||
enum ExpressionParseStatus
|
||||
|
Reference in New Issue
Block a user