summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ExpressionParser.cpp
AgeCommit message (Collapse)Author
2016-07-30InputConfigDiag: Don't prevent closing dialog if device not foundLéo Lam
There is no reason to prevent the user from closing the config dialog if the device is not found. It's not very good UX… Also fixes ExpressionParser to return NO_DEVICE if the device doesn't exist instead of SUCCESS.
2016-07-29ControllerInterface: Add RemoveDevice()Léo Lam
This adds RemoveDevice() to ControllerInterface, fixes ExpressionParser and some other code to support device removals without crashing, and adds an IsValid() method to Device, to prepare for hotplugging.
2016-06-26ControllerInterface: Include memory to fix building without pchChristian Widmer
All affected files use shared_ptr but do not include memory which breaks building without precompiled headers.
2016-06-25ControllerInterface: Switch to std::shared_ptrLéo Lam
Small cleanup by using std::shared_ptr and getting rid of ciface.Devices() which just returned the m_devices (which defeats the point of making m_devices protected). Incidentally, this should make the code safer when we have different threads accessing devices in the future (for hotplug?). A lot of code use Device references directly so there is no easy way to remove FindDevice() and make those unique_ptrs.
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2015-09-09ExpressionParser: Make all control paths return a value in operator std::stringLioncash
2015-07-30Remove unnecessary virtual keywordsLioncash
2015-05-28Pass strings by const reference where possibleLioncash
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-05-22ExpressionParser: Add missing break in UnaryExpression value settingLioncash
2015-02-26Do not fail to evaluate an expression if some input is missingGabriel Corona
My keyboard layout does not have Alt_R but ISO_Level3_Shift. As a consequence any control expression containing Alt_R fails to evaluate completely and is unusable. This modification replace the missing term of the expression by a dummy expression which always evaluate to 0. This way, the keybinding can work even if some keys are not available.
2014-11-11Fix some double->float conversions.Rachel Bryk
2014-09-03Change ControlState typedef to double, and change all related floats/doubles ↵Rachel Bryk
to use it. Fixes an off by 1 issue related to double->float->double conversion, and eliminates numerous warnings.
2014-08-30InputCommon: Clean up brace placementsLioncash
2014-07-11ControllerInterface: Gate the input based on our new background input settingJasper St. Pierre
2014-07-11mark all local functions as staticdegasus
2014-03-09clang-modernize -use-nullptrTillmann Karras
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
2014-02-18Convert all includes to relative paths.Lioncash
2014-02-13Turn loops into range-based formTillmann Karras
and some things suggested by cppcheck and compiler warnings.
2014-02-10Replace all include guard ifdefs with "#pragma once"lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre