summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
2020-12-03mouse_poller: Remove unused includesLioncash
2020-12-03mouse_input: Invert conditional in UpdateYuzuSettings()Lioncash
Allows the struct to be constructed in place.
2020-12-03mouse_input: Remove two casts and amend some formattingLioncash
Removes the use of two static casts and improves the readability of some vectors slightly.
2020-12-03mouse_input: Resolve a -Wdocumentation warningLioncash
2020-12-03mouse_input: Remove unused includesLioncash
2020-12-01Merge pull request #4937 from german77/multiUDPbunnei
InputCommon: Add multiple udp server support
2020-12-01Merge pull request #5047 from german77/MouseInputLC
InputCommon: Fix implicit conversion in mouse input
2020-11-30Fix implicit conversion in mouse inputgerman
2020-11-29Merge pull request #4939 from german77/MouseInputbunnei
InputCommon: Implement full mouse support
2020-11-25Implement full mouse supportgerman
2020-11-25Add multiple udp server supportgerman
2020-11-25input_common: ignore some Clang warnings after 5c4774e8ce1dJan Beich
error: unknown warning option '-Werror=unused-but-set-parameter'; did you mean '-Werror=unused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option]
2020-11-24Merge pull request #4905 from german77/AnalogFromButtonbunnei
Allow to dial any angle with digital joystick
2020-11-23input_common: Fix typo in gc_poller.cpp with [[maybe_unused]].bunnei
2020-11-23input_common: Add more missing [[maybe_unused]] from #4927.bunnei
2020-11-22input_common: Treat warnings as errorsLioncash
Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
2020-11-19Modify rumble amplificationgerman77
2020-11-17Merge pull request #4866 from Morph1984/mjolnir-p3-prodbunnei
Project Mjölnir: Part 3 - Controller Profiles and Vibration Rework
2020-11-15sdl_impl: Pump SDL Events at 1000 HzMorph
2020-11-15sdl_impl: Revert to the "old" method of mapping sticksMorph
Not all controllers have a SDL_GameController binding. This caused controllers not present in the SDL GameController database to have buttons mapped instead of axes. Furthermore, it was not possible to invert the axes when it could be useful such as emulating a horizontal single joycon or other potential cases. This allows us to invert the axes by reversing the order of mapping (vertical, then horizontal).
2020-11-15controllers/npad: Remove the old vibration filterMorph
Previously we used a vibration filter that filters out amplitudes close to each other. It turns out there are cases where this results into vibrations that are too inaccurate. Remove this and move the 100Hz vibration filter (Only allowing a maximum of 100 vibrations per second) from sdl_impl to npad when enable_accurate_vibrations is set to false.
2020-11-15input_common: Add VibrationDevice and VibrationDeviceFactoryMorph
A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
2020-11-15configure_input: Add per-player vibrationMorph
Allows for enabling and modifying vibration and vibration strength per player. Also adds a toggle for enabling/disabling accurate vibrations. Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-11-15controllers/npad: Add heuristics to reduce rumble state changesMorph
Sending too many state changes in a short period of time can cause massive performance issues. As a result, we have to use several heuristics to reduce the number of state changes to minimize/eliminate this performance impact while maintaining the quality of these vibrations as much as possible.
2020-11-15configure_input_player: Change "Defaults" button behaviorMorph
RestoreDefaults() now restores the selected devices' mappings using UpdateMappingWithDefaults(). This allows us to move the keyboard mapping from RestoreDefaults() to UpdateMappingWithDefaults().
2020-11-15udp/client: Reduce testing period to 5 secondsMorph
2020-11-15configure_input_player: Implement input exclusivity and persistenceMorph
With this, the "Input Devices" combobox should accurately reflect the input device being used and disallows inputs from other input devices unless the input device is set to "Any".
2020-11-15motion_input: Mark constructor as explicitLioncash
2020-11-15motion_input: Mark member functions as [[nodiscard]] where applicableLioncash
2020-11-10fix minor clang errorgerman
2020-11-08Allow to dial any angle with digital joystickgerman
2020-10-28Add hotplug, rumble and fix 3rd party adapters for the GC adaptergerman
2020-10-21sdl_impl: Fix controller reconnection issuesMorph
It turns out that after a controller is disconnected, there is a chance that events from the previous controller are sent/processed after it has been disconnected. This causes the previously disconnected controller to reappear as connected due to GetSDLJoystickBySDLID() emplacing this controller back to the map. Fix this by only returning an SDLJoystick if and only if it exists in the map.
2020-10-20Merge pull request #4809 from Morph1984/mjolnir-p3LC
configure_input_player: Fix modifier buttons
2020-10-20Merge pull request #4627 from Morph1984/fix-dinput-controller-disconnectbunnei
sdl_impl: Erase the SDLJoystick entry after removing a controller
2020-10-20configure_input_player: Fix modifier buttonsMorph
Fix them for real this time, now they finally work.
2020-10-16udp/client: Make use of designated initializers in TestCommunication()Lioncash
Same behavior, but makes the callback list nicer to look at.
2020-10-16udp/client: Take std::function by const reference with TestCommunication()Lioncash
Avoids redundant copies.
2020-10-16sdl_impl: Erase the SDLJoystick entry after removing a controllerMorph
Previously, disconnecting a controller still leaves a null SDLJoystick entry within the vector of SDLJoysticks mapped by GUID. When a DirectInput device of the same GUID is reconnected, it adds that device to a new port causing non-detectable input. Furthermore, opening the "Configure" menu would cause yuzu to crash since it first tries to resolve the name of a null SDLJoystick entry that was not removed. Resolve this by properly erasing the SDLJoystick entry from the vector.
2020-10-15input_common/CMakeLists: Make some warnings errorsLioncash
Makes the input_common code warnings consistent with the rest of the codebase.
2020-10-09Merge pull request #4757 from german77/BetterMotionbunnei
InputCommon: Add compatibility with only accelerometer and auto calibrate for drift
2020-10-08Merge pull request #4677 from german77/ShakeFromButtonbunnei
InputCommon: Add random motion input for buttons
2020-10-06Merge pull request #4727 from FrogTheFrog/patch-1bunnei
Reduce the "shake" requirements when configuring UDP.
2020-10-04Address commentsgerman
2020-10-03Add compatibility with only accelerometer and auto calibrate for driftgerman
2020-09-30Reduce the "shake" requirements when configuring UDP.Lukas Senionis
2020-09-29First implementation of controller rumblegerman
2020-09-25Add random motion input to keyboardgerman
2020-09-25Add random motion input to SDLgerman
2020-09-18Add automap feature for GC adaptergerman