summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-06-26 20:19:23 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-06-26 20:19:23 -0400
commitf53eefb491d8325ec7fccc8c006dc3be38765fe5 (patch)
tree4403c26fa89cd9294d0ba248891309b8f5008f9a /Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h
parent03fdebac09f76decaa0a51f3491fa606f45df3cb (diff)
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.
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h')
-rw-r--r--Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h b/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h
index 342f513f5c..d85c17a474 100644
--- a/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h
+++ b/Source/Core/InputCommon/Src/ControllerInterface/ExpressionParser.h
@@ -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