summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControlReference/FunctionExpression.cpp
AgeCommit message (Collapse)Author
2025-02-02Merge pull request #13315 from jordan-woyak/func-exp-cleanupAdmiral H. Curtiss
InputCommon/ExpressionParser: Function argument parsing minor cleanup.
2025-01-28InputCommon/ExpressionParser: Make ValidateArguments access existingJordan Woyak
members instead of passing arguments.
2025-01-28InputCommon: Fix input expression assignment operator behavior.Jordan Woyak
2024-04-12ExpressionParser: Support unary plus operator.Jordan Woyak
2022-10-11Input: Add "abs" input expression function.Jordan Woyak
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2020-08-02InputCommon: Add a handful of math functions to the expression parser.Admiral H. Curtiss
2020-02-08InputCommon: Allow controller settings specified with input expresions.Jordan Woyak
2019-11-22InputCommon/FunctionExpression: Use Yoda conditions, we do notLioncash
The general convention in the codebase is to compare the non-constant value/string with the constant value/string, not the other way around.
2019-11-22InputCommon/FunctionExpression: Remove unnecessary 'else' in ↵Lioncash
MakeFunctionExpression() Given all conditional bodies only contain a return, the use of else here isn't necessary. This has the benefit of consistently vertically aligning the names.
2019-11-22InputCommon/FunctionExpression: Make MakeFunctionExpression() take a ↵Lioncash
std::string_view There's nothing within this function that requires a copy of the string to be made, so we can make use of a non-owning view
2019-11-22InputCommon/FunctionExpression: Remove unused LOOP_MAX_REPS constantLioncash
This isn't used anywhere in the translation unit, so we can remove it.
2019-11-22InputCommon/FunctionExpression: Collapse namespacesLioncash
Since we target C++17, we can collapse the namespaces into a single declaration specifier.
2019-11-22InputCommon/FunctionExpression: include <algorithm>Lioncash
std::min/std::max are used within this translation unit, so it needs to be included to prevent potential compilation failures.
2019-10-11ExpressionParser: Show error message with expected arguments.Jordan Woyak
2019-10-11ExpressionParser: Remove ! character from function syntax. Remove unused ↵Jordan Woyak
serialization functions.
2019-10-11ExpressionParser: Remove !while and add optional 2nd argument to !smooth.Jordan Woyak
2019-10-11ExpressionParser/DolphinQt: Added parse results to UI.Jordan Woyak
2019-10-11ExpressionParser: Clean up some redundant using-declarations and wrong comments.Jordan Woyak
2019-10-11ExpressionParser: Add !pulse function that evaluates to 1.0 for N seconds ↵Jordan Woyak
for each press.
2019-10-11ExpressionParser: Add relative input function.Jordan Woyak
2019-10-11ExpressionParser: Fix timer function with negative values.Jordan Woyak
2019-10-11ExpressionParser: Add !tap function which activates after X (defaults to 2) ↵Jordan Woyak
taps within Y seconds.
2019-10-11ExpressionParser: Add !hold function that activates after input is held for ↵Jordan Woyak
N seconds.
2019-10-11ExpressionParser: Add function to smooth inputs.Jordan Woyak
2019-10-11ExpressionParser: Add deadzone function.Jordan Woyak
2019-10-11ExpressionParser: Add optional 2nd argument to toggle function which clears ↵Jordan Woyak
state.
2019-10-11ExpressionParser: Move FunctionExpression type definitions into another file.Jordan Woyak