aboutsummaryrefslogtreecommitdiff
path: root/src/core/frontend/applets/controller.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [applet] ReconfigureControllers fallback unconditional disconnect fix (#4420)xbzk2026-09-151-9/+26
| | | | | | | | | | | | | | | | | | | - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- So, about Absolum's no overlay applet P2 issue: The fallback controller applet ignored keep_controllers_connected, according comment: "This makes it easy to connect the desired controllers". Unfortunately it was not good enough. It disconnected every controller, then reconnected only the minimum player count. That disconnect interacts with some guests (absolum in this case) causing undesired behaviors. The fix is entwined to original routine but it is a lot simple tho: preserves compatible connected controllers within the requested player range, while the existing routine configures only the remaining slots. This may fix some games, and should not harm others. Let us give it a go. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4420 Reviewed-by: MaranBr <maranbr@eden-emu.dev>
* [common/logging] Simplify logging logic and fix issues when logging before ↵lizzie2026-03-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* service: hid: Create abstracted pad structuregerman772024-01-111-1/+1
|
* hid_core: Move hid to it's own subprojectNarr the Reg2024-01-051-3/+3
|
* general: Use console mode helper across projectlat9nq2023-08-221-1/+2
|
* general: Convert use_docked_mode to an enumerationlat9nq2023-08-221-1/+2
| | | | Allows some special interactions with it in the Qt frontend.
* applet: controller: Implement cancel buttongerman772023-03-301-1/+1
|
* qt: implement RequestExit for appletsLiam2023-03-251-0/+2
|
* applets/controller: Use aliases for callbacksLioncash2022-12-051-1/+1
|
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-131-1/+1
|
* 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.
* core/hid: Fix controller type validationgerman772021-12-291-5/+5
|
* core/hid: Rename NpadType to NpadStyleIndexgerman772021-11-241-5/+5
|
* Morph review first wavegerman772021-11-241-3/+2
|
* kraken: Address comments from reviewgerman772021-11-241-30/+21
| | | | review fixes
* core/frontend: Update appletsgerman772021-11-241-9/+14
|
* hid: Reorder all HID commandsMorph2020-11-151-2/+2
| | | | Reorders all HID commands in command id order.
* settings: Preparation for per-game input settingsMorph2020-11-151-2/+2
|
* controller: Pass ControllerParameters by reference in ReconfigureControllers()Lioncash2020-10-261-1/+1
| | | | Prevents unnecessary copies and heap reallocations from occurring.
* Revert "core: Fix clang build"bunnei2020-10-201-1/+1
|
* core: Fix clang buildLioncash2020-10-171-1/+1
| | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* frontend/controller: Eliminate dependency on the global system instanceLioncash2020-09-251-4/+4
|
* applets/controller: Resolve several compiler warningsMorph2020-09-041-1/+2
| | | | Resolves -Wsign-compare and -Wunused-variable
* Address feedbackMorph2020-09-041-0/+2
|
* applets/controller: Modify heuristic to account for certain gamesMorph2020-09-041-7/+12
| | | | | | | | Now left and right joycons have the same priority (meaning both needs to be supported by the game). Explanation of the new heuristic: Assign left joycons to even player indices and right joycons to odd player indices. We do this since Captain Toad Treasure Tracker expects a left joycon for Player 1 and a right Joycon for Player 2 in 2 Player Assist mode.
* applets/controller: Implement fallback applet for the SDL frontendMorph2020-09-041-1/+34
| | | | Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required.
* Project Mjölnir: Part 2 - Controller AppletMorph2020-09-041-0/+40
Co-authored-by: Its-Rei <kupfel@gmail.com>