eden-miror/src/input_common
lizzie 14da4482a4
Some checks are pending
tx-src / sources (push) Waiting to run
Check Strings / check-strings (push) Waiting to run
[input_common/joycon] Enumerate SDL devices iff SDL signals change (#4486)
As per SDL documentation this is the "desired" loop.

> Enumerating the HID devices is an expensive operation, so you can call this to see if there have been any system device changes since the last call to this function. A change in the counter returned doesn't necessarily mean that anything has changed, but you can call SDL_hid_enumerate() to get an updated device list.

https://wiki.libsdl.org/SDL3/SDL_hid_device_change_count

Signed-off-by: lizzie <lizzie@eden-emu.dev>

- [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.

-------------------

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4486
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
2026-10-14 21:24:58 +02:00
..
drivers [input_common/joycon] Enumerate SDL devices iff SDL signals change (#4486) 2026-10-14 21:24:58 +02:00
helpers [*] fix clangarm64 compilation (#4521) 2026-10-11 05:11:01 +02:00
CMakeLists.txt [cmake] Add ENABLE_WERROR option (#4080) 2026-08-09 02:56:28 +02:00
input_engine.cpp [hid_core] fix LM2 crash due to callbacks not being removed properly (#4178) 2026-07-07 19:52:22 +02:00
input_engine.h [common] Switch to boost::unordered_flat containers (#4326) 2026-08-31 02:58:09 +02:00
input_mapping.cpp input_common: Add android input engine 2024-01-17 22:47:56 -06:00
input_mapping.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
input_poller.cpp Warnings cleanup for GCC 13 and Clang 16 2023-08-25 19:22:31 -04:00
input_poller.h core: hid: Enable pulling color data from controllers 2023-01-19 18:05:20 -06:00
main.cpp [*] basic in-house cpp linting (#4039) 2026-06-04 05:49:07 +02:00
main.h [common] Switch to boost::unordered_flat containers (#4326) 2026-08-31 02:58:09 +02:00