Merry
b02d74d113
input_common: Replace lock_guard with scoped_lock
4 years ago
ameerj
e7bb6ec32e
input_common: Reduce unused includes
4 years ago
german77
75d96d5462
input_common: Remove battery duplicated struct and update every button press
4 years ago
Morph
51c445f7e8
input/hid: Migrate to the new UUID implementation
4 years ago
Valeri
ffc1f4df39
input_common: nitpick about SetHatButton usage
4 years ago
german77
10439bbfff
input_common: Use accelerometer data for mapping
4 years ago
Lioncash
e609218c0f
input_engine: Simplify PreSet* family of functions
We can make use of try_emplace() to insert values only if they don't
already exist.
4 years ago
Lioncash
14f7f35957
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.
4 years ago
Lioncash
f8db0a76af
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).
4 years ago
Lioncash
190cfc5997
input_engine: Take BasicMotion by const reference with SetMotion() and TriggerOnMotionChange()
Copies the BasicMotion instance once instead of twice.
4 years ago
Lioncash
e0e9f98fc6
input_engine: std::move InputIdentifier in SetCallback()
Allows avoiding std::function allocations.
4 years ago
german77
30de38ee7f
kraken: Address comments from review
Fix compiler bug
4 years ago
german77
4736326a05
second commit lion review
4 years ago
german77
a8852024b6
settings: Fix Debug controller type options
4 years ago
german77
d1bac9024d
settings: Fix mouse and keyboard mappings
4 years ago
german77
312dd2fb89
input_common: Create input_engine
4 years ago