aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/input_engine.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [common/logging] Simplify logging logic and fix issues when logging before ↵lizzie2026-03-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | system is created (#3688) - our logging code was bigger than spdlog itself, why???? just keep it simple - fix issues when logging before logging system is even started - removes the "initialized logging twice" issue - removes uneeded indirection in file logging - uses direct formatting instead of jumping hoopla-around the fmt::format() ressult - code duplication and dead code removal as usual I did explore dup2() but I think it's not worth the hassle I did try `fwopen()` but it's better if things are just kept as-is. there is a lot of noise because I removed a bunch of redundant files on logging and just put everything in one file now normally this wouldn't be a good idea, however consider: the complexity of logging; it's less than 500 lines... does it really need a whole subsystem?!?!?! ITS JUST LOGGING Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3688 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: DraVee <chimera@dravee.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* [icc] fix intel c++ compiler errors (#146)lizzie2025-07-301-1/+3
| | | | | | Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/146 Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
* input_common: Map motion with relative values not absolute onesgerman772023-05-191-4/+7
|
* input_common: Revert debugging changesgerman772023-05-061-2/+0
|
* input_common: Add property to invert an axis buttonNarr the Reg2023-05-051-0/+2
|
* core: hid: Enable pulling color data from controllersNarr the Reg2023-01-191-0/+37
|
* input_common: Create virtual amiibo drivergerman772022-10-021-0/+37
|
* input_common: Add camera drivergerman772022-07-231-0/+38
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* input_common: Replace lock_guard with scoped_lockMerry2022-04-071-23/+23
|
* input_common: Reduce unused includesameerj2022-03-201-1/+0
|
* Merge pull request #7859 from german77/battery_againbunnei2022-02-241-4/+4
|\ | | | | input_common: Remove battery duplicated struct and update every button press
| * input_common: Remove battery duplicated struct and update every button pressgerman772022-02-061-4/+4
| |
* | input/hid: Migrate to the new UUID implementationMorph2022-02-051-5/+5
|/
* input_common: nitpick about SetHatButton usageValeri2022-01-171-1/+1
|
* input_common: Use accelerometer data for mappinggerman772022-01-061-2/+10
|
* input_engine: Simplify PreSet* family of functionsLioncash2021-12-131-15/+5
| | | | | We can make use of try_emplace() to insert values only if they don't already exist.
* input_engine: Avoid redundant map lookupsLioncash2021-12-131-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.
* input_engine: Iterate by reference rather than by value where applicableLioncash2021-12-131-10/+10
| | | | | Avoids creating copies of several object instances (some of which being over 100 bytes in size).
* input_engine: Take BasicMotion by const reference with SetMotion() and ↵Lioncash2021-12-131-2/+2
| | | | | | TriggerOnMotionChange() Copies the BasicMotion instance once instead of twice.
* input_engine: std::move InputIdentifier in SetCallback()Lioncash2021-12-131-1/+1
| | | | Allows avoiding std::function allocations.
* kraken: Address comments from reviewgerman772021-11-241-2/+2
| | | | Fix compiler bug
* second commit lion reviewgerman772021-11-241-2/+3
|
* settings: Fix Debug controller type optionsgerman772021-11-241-1/+1
|
* settings: Fix mouse and keyboard mappingsgerman772021-11-241-0/+2
|
* input_common: Create input_enginegerman772021-11-241-0/+361