summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/ControllerInterface/Xlib/XInput2.cpp
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-06-13 23:09:55 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-06-25 00:58:30 -0400
commit6246f6e81581339eb176cae044960e1f8437b488 (patch)
tree97ee262e44f276856c59bda17f76b302a537646e /Source/Core/InputCommon/Src/ControllerInterface/Xlib/XInput2.cpp
parent877106b027431c6edb2d2c702fa6d811dac3d250 (diff)
InputCommon: Add a new ExpressionParser to replace the old hack language
This contains a new, hand-written expression parser to replace the old hack language based on string munging. The new approach is a simple AST-based evaluation approach, instead of the "list of operations" infix-based hack that there was before. The new language for configuration has support for parentheses, and counts "!" as a unary operator instead of the binary "NOT OR" operator it was before. A simple example: (X & Y) | !B Explicit device references, and complex device names ("Right Y+") are handled with backticks and colons: (`SDL/0/6 axis joystick:Right X+` & `DInput/0/Keyboard Mouse:A`) The basic editor UI that inserts tokens has not been updated to reflect the new language.
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/Xlib/XInput2.cpp')
0 files changed, 0 insertions, 0 deletions