summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
AgeCommit message (Collapse)Author
4 daysMerge pull request #14778 from JoshuaVandaele/about-enable-sdlScott Mansell
AboutDialog: Fix compilation with ENABLE_SDL=OFF
4 daysMerge pull request #14765 from slick-daddy/opt-6Scott Mansell
InputCommon: return the device list directly in GetAllDevices
5 daysAboutDialog: Fix compilation with ENABLE_SDL=OFFJoshua Vandaële
6 daysReplace string concatination with `fmt::format`Dr. Dystopia
7 daysReturn m_devices directly in GetAllDevices().slick-daddy
12 daysMerge pull request #14436 from cbartondock/masterScott Mansell
Loading custom textures using combination of elf/dol game ids and iso game ids.
2026-07-15waterfall loading of textures via id to prefer elfid-gameid when launched ↵cbartondock
via elf; fallback to gameid if no match
2026-07-12GCAdapter: Deregister callback when scan thread exitsJosJuice
We were registering the hotplug callback when starting the thread, but deregistering it when shutting down GCAdapter as a whole. Because the thread can start and stop potentially many times before GCAdapter shuts down, this led to callbacks being registered when we already have callbacks. On Android, this was making Dolphin's Kotlin code for registering the callback throw an IllegalStateException. To fix this, deregister the callback when stopping the thread.
2026-07-08mingw: lower case windows includesCraig Carnell
2026-06-26Android: Fix mixup between Vibrator id and indexJosJuice
This fixes https://bugs.dolphin-emu.org/issues/14076. The issue report more or less already says it all, but to provide a shorter summary: We were fetching a list of vibrator IDs, but instead of passing the vibrator ID to the vibrator manager, we passed the index of the ID in the list. This happened to work fine on many devices, including all devices that use DolphinVibratorManagerCompat, due to the only Vibrator having both an index and ID of 0. But on some devices, it failed due to the ID of the Vibrator being 1. This fix makes us correctly pass the ID to the vibrator manager. We still use indices in controller INI files, both for compatibility with the controller mappings shipped with Dolphin (which use index 0) and for backwards compatibility with older controller INI files.
2026-05-06Unconditionally lock in ControllerInterface::UpdateInput.Vlad Firoiu
2026-04-25GCAdapter: Fix data racesDentomologist
Make `s_is_adapter_wanted` and the elements of `s_config_rumble_enabled` atomic. The CPU thread reads `s_is_adapter_wanted` and `s_config_rumble_enabled` in `Output`, while the host thread writes to them in `RefreshConfig`. The simplest way to trigger this race is to close the `Settings` window while playing a game with the adapter active.
2026-04-24Merge pull request #14608 from JosJuice/gcadapter-auto-startDentomologist
GCAdapter: Automatically start and stop thread
2026-04-18GCAdapter: Automatically start and stop threadJosJuice
This keeps the logic encapsulated inside GCAdapter.cpp so callers don't have to think about it.
2026-04-17Improve usage of std::move and const references parametersMartino Fontana
Accomplished using `run-clang-tidy` with `performance-move-const-arg,performance-unnecessary-value-param,modernize-pass-by-value`. Changed arguments to const references, removed them where inappropriate (e.g. sink parameters). Same with std::move. Manually reviewed each change to make sure that it makes sense, and do something more appropriate if possible.
2026-03-18Merge pull request #14237 from JulienBernard3383279/gcc-adapter-hotswapJordan Woyak
GC adapter fixes (hotplugging, claim retries, Dolphin shutdown)
2026-03-01DSU: Don't crash on bad hostnameTellowKrinkle
2026-02-25Send neutral stick positions when disconnected rather than down-leftJulien Bernard
2026-02-25Gcc adapter fixes (hotplugging, claim retries, shutdown, bad yields)Julien Bernard
2026-02-20Merge pull request #14335 from TixoRebel/joycon-configJMC47
Core: Add SDL Hints settings
2026-02-20Add new window to configure SDL hints and store them in the main ini fileAndrew Strauss
Signed-off-by: Andrew Strauss <astrauss11@gmail.com>
2026-02-15Added Triforce supportcrediar
2026-02-08Android: Rework input device hotplugJosJuice
Previously, when an input device was connected or disconnected, we would recreate all devices. This commit makes it so we only touch the relevant device instead. This matters because recreating a device causes us to drop all held buttons for that device. Due to Android only delivering inputs as events, we're unable to poll for currently held buttons when recreating a device. This recently became a problem for users of Ayn devices due to a firmware update. Every now and then, something about the display viewports changes, triggering an update to an input device that I assume is a touch input device. This input device isn't something users normally map in Dolphin's controller settings, but it changing was causing Dolphin to drop all held buttons for the device's built-in gamepad as well as any other connected gamepads.
2026-01-26InputConfig: Remove unused local variablesDentomologist
Remove unused vector `controller_names` from `LoadConfig` and `SaveConfig`. The vector has names added to it but they're never used. Prior to d03f9032c129e440e4f07d319be8b52500798e07 these vectors were passed to `DynamicInputTextureManager::GenerateTextures`, but that commit removed those calls.
2026-01-25Remove unused importsMartino Fontana
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
2026-01-24Remove VectorToJStringArraySintendo
2026-01-24Clean includesSintendo
2026-01-24Common/FileSearch: Refactor DoFileSearchSintendo
2026-01-17Merge pull request #14289 from Sintendo/typosJMC47
Fix various typos and spelling mistakes
2026-01-17Fix various typos and spelling mistakesSintendo
2026-01-07DInputKeyboardMouse: Always report all possible buttonsJoshua Vandaële
2025-12-22Merge pull request #14158 from jordan-woyak/gcadapter-poll-rate-displayJMC47
GCAdapter: Calculate poll rate for display in UI.
2025-12-09ControllerInterface: Turn off SDL's GameCube controller adapter handling ↵Jordan Woyak
when Dolphin is configured to use the adapter.
2025-11-29DITConfiguration: Prevent a crash if images fail to loadJoshua Vandaële
Recently came across a strange issue where Dolphin would hard crash in most games with this error: ```sh /usr/include/c++/15.2.1/optional:1165: constexpr const _Tp* std::optional<_Tp>::operator->() const [with _Tp = InputCommon::ImagePixelData]: Assertion 'this->_M_is_engaged()' failed. ``` The culprit turned out to be accessing `host_key_image` which is an `std::optional` thay may return `std::nullopt`. I'm not sure why this issue started occuring for me since I've had no issue with my Dynamic Input Textures in the past? But this fixes a crash if the image fails to load.
2025-11-23GCAdapter: Calculate poll rate for display in UI. It's currently updated ↵Jordan Woyak
every 50 reads.
2025-11-06Common: Remove the string parameters from the HookableEvent interface.Jordan Woyak
2025-11-05InputCommon: Make ControllerInterface RegisterDevicesChangedCallback use ↵Jordan Woyak
Common::HookableEvent.
2025-10-09Merge pull request #13963 from jordan-woyak/point-passthru-needs-bound-inputsJMC47
WiimoteEmu: Require IRPassthrough has any bound inputs to operate.
2025-10-04WiimoteEmu: Require IRPassthrough has any bound inputs to operate. Users get ↵Jordan Woyak
confused and mistakenly enable it.
2025-10-04Merge pull request #13752 from jordan-woyak/xlib-duplicate-key-namesAdmiral H. Curtiss
ControllerInterface/Xlib: Combine keycodes with the same name to fix non-working inputs.
2025-09-30SDL: Disable DirectInput handling to work around hangs with the "8BitDo ↵Jordan Woyak
Ultimate 2" controller.
2025-09-30SDL: Name the hotplug thread.Jordan Woyak
2025-09-28Merge pull request #13260 from JosJuice/android-gcadapter-hotplug-callbackJMC47
Android: Detect GCAdapter hotplug using BroadcastReceiver
2025-09-26Merge pull request #13961 from Sam-Belliveau/sdl-gamepad-profileJMC47
Add SDL Gamepad Profile
2025-09-24Prevent profiles with no device specification from resetting deviceSam Belliveau
2025-08-17ControllerInterface/SDL: Remove manual window message pumping on Windows.Jordan Woyak
The mentioned SDL hotplug issue seems to have been fixed.
2025-08-17ControllerInterface/SDL: Don't force SDL_HINT_JOYSTICK_THREAD.Jordan Woyak
SDL3 enables it by default now and things seem to work properly even when it's off these days.
2025-08-01Merge pull request #13177 from jordan-woyak/remove-nunchuk-haxAdmiral H. Curtiss
ControllerEmu: Remove nunchuk stick data hax.
2025-07-30Merge pull request #13781 from ↵JosJuice
Dentomologist/controllerinterface_fix_windows_deadlock ControllerInterface: Fix Windows deadlock
2025-07-27Revert "Android/GCAdapter: Don't join current thread"JosJuice
This reverts commit 74ed5e55326b9d8e67dfbb8dd6f61d04bcae2445. It solves a problem that no longer exists.