summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
AgeCommit message (Collapse)Author
2025-01-01InputCommon: Move input mapping function into a class for non-blocking usage.Jordan Woyak
2025-01-01Simplify `std::find` with `Common::Contains`mitaclaw
In NandPaths.cpp, the `std::initializer_list<char>` of illegal characters has been turned into a `char[]` (similar to the one in GameList.cpp). The reverse iteration in ResourcePack.cpp seemed to provide no benefits, and doing without it it seemed to have no ill effects.
2024-12-26Merge pull request #13116 from mitaclaw/ranges-modernization-8-trivial-ofJMC47
Ranges Algorithms Modernization - Of
2024-12-20Merge pull request #13091 from mitaclaw/ranges-modernization-2-returnsJMC47
Ranges Algorithms Modernization - Return
2024-12-15Modernize `std::none_of` with rangesmitaclaw
In JitRegCache.cpp, the lambda predicate were replaced by a pointer to member function because ranges algorithms are able to invoke those. In ConvertDialog.cpp, the `std::mem_fn` helper was removed because ranges algorithms are able to handle pointers to member functions as predicates. In BoundingBox.cpp, the lambda predicate was returning the bool element unchanged, so `std::identity` was a better fit.
2024-12-15Modernize `std::any_of` with rangesmitaclaw
In WiimoteReal.cpp, JitRegCache.cpp, lambda predicates were replaced by pointers to member functions because ranges algorithms are able invoke those. In ConvertDialog.cpp, the `std::mem_fn` helper was removed because ranges algorithms are able to handle pointers to member functions as predicates.
2024-12-15Modernize `std::all_of` with rangesmitaclaw
In DITSpecification.cpp, MaterialAsset.cpp, and ShaderAsset.cpp, lambda predicates were replaced by pointers to member functions because ranges algorithms are able invoke those. In NetPlayClient.cpp, the non-trivial `NetPlay::Player` elements were being passed by value in `NetPlayClient::DoAllPlayersHaveGame()`. This has been fixed. In WIABlob.cpp, the second example's predicate was returning the `std::optional` by value instead of implicitly converting it to a bool. This has been fixed.
2024-12-04InputCommon/SDL: Add touchpad inputs.Jordan Woyak
2024-12-04Merge pull request #13174 from jordan-woyak/sdl-batteryJMC47
ControllerInterface/SDL: Add Battery Input.
2024-12-01Android/GCAdapter: Don't join current threadJosJuice
The read thread could call Reset, which in turn tried to join the read thread, leading to a SIGABRT. This manifested as Dolphin consistently crashing when disconnecting a GC adapter and having a chance of crashing a few seconds after connecting a GC adapter.
2024-11-17Merge pull request #13156 from jordan-woyak/sdl-no-wgiJosJuice
ControllerInterface/SDL: Disable SDL's Windows.Gaming.Input controller handling.
2024-11-04ControllerInterface/SDL: Add Battery Input.Jordan Woyak
2024-11-03InputCommon: Move FullAnalogSurface class definition out of header file.Jordan Woyak
2024-11-03InputCommon: Rename AddAnalogInputs to AddFullAnalogSurfaceInputs.Jordan Woyak
2024-11-02InputCommon: Disable DualSense Player LEDdreamsyntax
2024-10-31ControllerInterface/SDL: Fix device removal event processing.Jordan Woyak
2024-10-30ControllerInterface/SDL: Disable SDL's Windows.Gaming.Input controller handling.Jordan Woyak
2024-10-27Merge pull request #13096 from mitaclaw/ranges-modernization-7-rewriteJMC47
Ranges Algorithms Modernization - Rewrite
2024-10-17Modernize `std::unique` with rangesmitaclaw
The new return value is `std::ranges::subrange`.
2024-10-15Merge pull request #13090 from mitaclaw/ranges-modernization-1-trivialJosJuice
Ranges Algorithms Modernization - Trivial
2024-10-11ControllerEmu: Change trigger threshold check to >= instead of > and set ↵Jordan Woyak
minimum threshold in UI to 1% to prevent user error.
2024-10-10C++20: Synthesize `operator!=` From `operator==`mitaclaw
The inequality operator is automatically generated by the compiler if `operator==` is defined.
2024-10-10Modernize `std::set_intersection` with rangesmitaclaw
2024-10-10Modernize `std::sort` with rangesmitaclaw
2024-10-10Modernize `std::fill` with rangesmitaclaw
In DSPCore.cpp, there were two `std::fill` uses that could be simplified using `std::fill_n`. Due to their proximity with other `std::fill` algorithms being modernized with ranges, I chose to make these examples into the rare `std::ranges::fill_n`.
2024-10-10Modernize `std::equal` with rangesmitaclaw
2024-10-10Modernize `std::count_if` with rangesmitaclaw
2024-10-09Simplify `std::transform` with `std::ranges::transform_view`mitaclaw
2024-10-09Simplify `std::fill` with `std::array::fill`mitaclaw
2024-09-22StringUtil: Remove `JoinStrings`mitaclaw
With 12 uses of `JoinStrings` in the codebase vs 36 uses of `fmt::join`, fmtlib's range adapter for string concatenation with delimiters is clearly the preferred option.
2024-08-20Remove redundant semicolonsDr. Dystopia
2024-08-15Misc. Container Find Changesmitaclaw
2024-08-15Use 'contains' methodmitaclaw
2024-08-14Use 'contains' methodDr. Dystopia
2024-08-07Merge pull request #12961 from JosJuice/expression-parser-translationTilka
InputCommon: Translate ExpressionParser error messages
2024-07-28InputCommon: Translate ExpressionParser error messagesJosJuice
The _trans macro marks strings for translation but doesn't do anything at runtime. For that, we need to use a function like GetStringT.
2024-07-26Adjust order and spacing of various #includesDentomologist
Move some #includes around to match the Contributing guidelines.
2024-07-21Use C++20 erase_if() instead of erase(remove_if()) (NFC)Tillmann Karras
2024-06-15Merge pull request #12850 from jordan-woyak/device-sortingAdmiral H. Curtiss
ControllerInterface: Adjust sort priorities to ensure default keyboard-mouse device is first.
2024-06-15ControllerInterface: Adjust sort priorities to ensure default keyboard-mouse ↵Jordan Woyak
device is first.
2024-06-15Merge pull request #12818 from iwubcode/json_file_operationsAdmiral H. Curtiss
Common: add Json helper utilities for loading or saving to a file
2024-05-31InputCommon / VideoCommon: update to use new JsonFromFile functioniwubcode
2024-05-31TAS Input: Enable hotkeys and controller input when Input has focusDentomologist
Enable emulator hotkeys and controller input (when that option is enabled) when a TAS Input window has focus, as if it was the render window instead. This allows TASers to use frame advance and the like without having to switch the focused window or disabling Hotkeys Require Window Focus which also picks up keypresses while other apps are active. Cursor updates are disabled when the TAS Input window has focus, as otherwise the Wii IR widget (and anything else controlled by the mouse) becomes unusable. The cursor continues to work normally when the render window has focus.
2024-05-21Merge pull request #12711 from jordan-woyak/modifier-range-ini-defaultAdmiral H. Curtiss
InputCommon: Fix unnecessary "Modifier/Range" ini file entries.
2024-04-22port to OpenBSDGuilherme Janczak
2024-04-15InputCommon: Fix unnecessary "Modifier/Range" ini file entries.Jordan Woyak
2024-04-15DolphinQt/Mapping: Disable relative input when "Mouse Controlled Pointing" ↵Jordan Woyak
button is pressed.
2024-04-13Android/ControllerInterface: Run the init codeJosJuice
This was broken by a9a9fdd9e9. Because Init didn't run, the Android input backend would crash whenever it tried to call into JVM code.
2024-04-13Merge pull request #12632 from jordan-woyak/input-backend-implsTilka
Implement missing InputBackend classes.
2024-04-12NumericSetting: Stop values from binding to numbered input names.Jordan Woyak