Commit Graph

11 Commits (4b4af29f860fb2fdecb76d705265b0bc2bcc7254)

Author SHA1 Message Date
german77 4b4af29f86 input_common: Use accelerometer data for mapping 3 years ago
Lioncash a9d39b6895 input_engine: Simplify PreSet* family of functions
We can make use of try_emplace() to insert values only if they don't
already exist.
3 years ago
Lioncash 4d4a234476 input_engine: Avoid redundant map lookups
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.
3 years ago
Lioncash e826e6715a input_engine: Iterate by reference rather than by value where applicable
Avoids creating copies of several object instances (some of which being
over 100 bytes in size).
3 years ago
Lioncash 755822ceec input_engine: Take BasicMotion by const reference with SetMotion() and TriggerOnMotionChange()
Copies the BasicMotion instance once instead of twice.
3 years ago
Lioncash a92dbec962 input_engine: std::move InputIdentifier in SetCallback()
Allows avoiding std::function allocations.
3 years ago
german77 42949738f2 kraken: Address comments from review
Fix compiler bug
4 years ago
german77 77fa4d4bf6 second commit lion review 4 years ago
german77 730f078302 settings: Fix Debug controller type options 4 years ago
german77 464c4d26ac settings: Fix mouse and keyboard mappings 4 years ago
german77 ea7b1fbc67 input_common: Create input_engine 4 years ago