summaryrefslogtreecommitdiffstats
path: root/src/input_common/input_engine.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-13input_engine: Simplify PreSet* family of functionsLioncash1-15/+5
We can make use of try_emplace() to insert values only if they don't already exist.
2021-12-13input_engine: Avoid redundant map lookupsLioncash1-16/+24
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 applicableLioncash1-10/+10
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 TriggerOnMotionChange()Lioncash1-2/+2
Copies the BasicMotion instance once instead of twice.
2021-12-13input_engine: std::move InputIdentifier in SetCallback()Lioncash1-1/+1
Allows avoiding std::function allocations.
2021-11-25kraken: Address comments from reviewgerman771-2/+2
Fix compiler bug
2021-11-25second commit lion reviewgerman771-2/+3
2021-11-25settings: Fix Debug controller type optionsgerman771-1/+1
2021-11-25settings: Fix mouse and keyboard mappingsgerman771-0/+2
2021-11-25input_common: Create input_enginegerman771-0/+361