summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
AgeCommit message (Collapse)Author
2025-05-03Common and VideoCommon: Change texture data from std::vector to ↵Jordan Woyak
Common::UniqueBuffer.
2025-05-02SDL: Check if touchpad exists before getting inputDentomologist
Verify a touchpad is present before polling it for input. Without this check the Debug log is spammed with the message "error: Parameter 'touchpad' is invalid" if you have a controller without a touchpad. One would think every touchpad supports at least 1 finger, but in case there's some weird edge case check the finger count to be sure.
2025-04-30Merge pull request #13436 from JoshuaVandaele/clang-format-19OatmealDome
Update clang-format to version 19
2025-04-25Merge pull request #13476 from jordan-woyak/sdl-headerTilka
InputCommon: Move SDL Device class into its own cpp/h files.
2025-04-23linter: Apply clang-format 19.1 formattingJoshua Vandaële
find ./Source/ -name '*.cpp' -o -name '*.h' | xargs clang-format-19 -i
2025-04-10InputCommon: Activate IMU Accelerometer and Gyroscope when any direction has ↵Jordan Woyak
a bound input.
2025-03-30InputCommon: Move SDL Device class into its own cpp/h files.Jordan Woyak
2025-03-28Merge pull request #13434 from JosJuice/android-non-blocking-input-detectionJMC47
Android: Don't use separate thread for MotionAlertDialog
2025-03-23Android: Don't use separate thread for MotionAlertDialogJosJuice
This is an Android continuation of bc95c00. We now call InputDetector::Update immediately after receiving an input event from Android instead of periodically calling it in a sleep loop. This improves detection of very short inputs, which are especially likely to occur for volume buttons on phones (or at least on my phone) if you don't intentionally keep them held down.
2025-03-23Merge pull request #13093 from mitaclaw/ranges-modernization-4-projectionJMC47
Ranges Algorithms Modernization - Projection
2025-03-23Merge pull request #13311 from ↵JMC47
iwubcode/dynamic_input_textures_reduce_image_writes Core / DolphinQt / InputCommon: reduce the number disk writes when using DynamicInputTextures
2025-03-22Core / DolphinQt / InputCommon: reduce the number disk writes when using ↵iwubcode
DynamicInputTextures
2025-03-15InputCommon/ControllerEmu: Break out functionality of EmulatedControllerJordan Woyak
to eliminate redundant unused members in Wii Remote extension objects.
2025-03-10Merge pull request #13363 from JoshuaVandaele/nowarningsJMC47
Fix multiple minor warnings
2025-03-10Merge pull request #13276 from JoshuaVandaele/sfml-3.0.0JMC47
Migrate to SFML 3.0.0
2025-03-09Modernize `std::stable_sort` with ranges and projectionsmitaclaw
2025-03-02InputCommon: Use Clock from CommonTypes.Jordan Woyak
2025-02-25Migrate to SFML>=3.0.0Joshua Vandaële
2025-02-21Fix multiple minor warningsJoshua Vandaële
- ExpressionParser.cpp: `-Wmissing-declarations` - AchievementManager.cpp: `-Wsign-compare` - SI.cpp: `-Warray-bounds=` - NetPlayClient.cpp: `-Wdangling-reference`
2025-02-15Merge pull request #13320 from jordan-woyak/detect-alternationsJMC47
DolphinQt/Mapping: Add setting to enable waiting for alternate mappings.
2025-02-08Merge pull request #13318 from sanjay900/dont-detach-macosOatmealDome
LibusbDevice: Don't detach kernel drivers on macOS
2025-02-02InputCommon/ExpressionParser: Add compound assignment operators.Jordan Woyak
2025-02-02Merge pull request #13208 from ↵Admiral H. Curtiss
Dentomologist/wiitasinputwindow_update_on_attachment_change WiiTASInputWindow: Update controls when attachment changes
2025-02-02Merge pull request #13315 from jordan-woyak/func-exp-cleanupAdmiral H. Curtiss
InputCommon/ExpressionParser: Function argument parsing minor cleanup.
2025-02-02Merge pull request #13314 from jordan-woyak/input-expressions-assignment-op-fixAdmiral H. Curtiss
InputCommon: Fix input expression assignment operator behavior.
2025-02-02Merge pull request #13280 from jordan-woyak/input-expressions-highlightingJMC47
InputCommon/DolphinQt: Fix sometimes broken syntax highlighting in IOWindow.
2025-02-01DolphinQt/Mapping: Add setting to enable waiting for alternate mappingsJordan Woyak
using the OR-operator.
2025-02-01LibusbDevice: Don't detach kernel drivers on macOSSanjay Govind
2025-01-28InputCommon/ExpressionParser: Make ValidateArguments access existingJordan Woyak
members instead of passing arguments.
2025-01-28InputCommon/ExpressionParser: Make function argument parsing errorJordan Woyak
message more clear.
2025-01-28InputCommon: Fix input expression assignment operator behavior.Jordan Woyak
2025-01-28Merge pull request #13304 from JoshuaVandaele/argsegfaultAdmiral H. Curtiss
Fix segfault when passing invalid arguments
2025-01-27Merge pull request #13178 from jordan-woyak/input-expressions-conditional-opJMC47
InputCommon: Add ternary conditional operator to input expressions.
2025-01-24Fix segfault when passing invalid argumentsJoshua Vandaële
2025-01-21InputCommon: Add support for SDL gamecontroller rumble triggers.Jordan Woyak
2025-01-21InputCommon: Make SDL Motor L/R Outputs not fight each other.Jordan Woyak
2025-01-19InputCommon/ExpressionParser: Require delimited tokens actually have their ↵Jordan Woyak
terminating delimiter.
2025-01-18WiiTASInputWindow: Update controls when attachment changesDentomologist
Change the displayed controls in the TAS Input window when the controller's extension (including MotionPlus) is changed. This previously required restarting Dolphin after the attachment was changed, as the controls were never updated after the WiiTASInputWindow was created at Dolphin startup.
2025-01-17ExpressionParser: Remove RemoveInertTokens.Jordan Woyak
2025-01-17InputCommon: Make input expression multiline-comment tokenizing less hacky.Jordan Woyak
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.