summaryrefslogtreecommitdiff
path: root/src/input_common/input_engine.cpp
AgeCommit message (Collapse)Author
2021-12-13input_engine: Simplify PreSet* family of functionsLioncash
We can make use of try_emplace() to insert values only if they don't already exist.
2021-12-13input_engine: Avoid redundant map lookupsLioncash
We can use iterators to avoid looking up into maps twice in the getter functions. At the same time we can also avoid copying the ControllerData structs, since they're 264 bytes in size.
2021-12-13input_engine: Iterate by reference rather than by value where applicableLioncash
Avoids creating copies of several object instances (some of which being over 100 bytes in size).
2021-12-13input_engine: Take BasicMotion by const reference with SetMotion() and ↵Lioncash
TriggerOnMotionChange() Copies the BasicMotion instance once instead of twice.
2021-12-13input_engine: std::move InputIdentifier in SetCallback()Lioncash
Allows avoiding std::function allocations.
2021-11-24kraken: Address comments from reviewgerman77
Fix compiler bug
2021-11-24second commit lion reviewgerman77
2021-11-24settings: Fix Debug controller type optionsgerman77
2021-11-24settings: Fix mouse and keyboard mappingsgerman77
2021-11-24input_common: Create input_enginegerman77