summaryrefslogtreecommitdiff
path: root/src/input_common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5236 from gal20/udp_client_patchGravatar bunnei2020-12-291-0/+5
|\ | | | | input_common: process udp packets only for the correct pad
| * udp client: process packets only for the correct padGravatar gal202020-12-271-0/+5
| |
* | Allow to invert analog axis with right clickGravatar german2020-12-263-17/+62
|/
* Merge pull request #5020 from german77/AnalogfromButtonFixGravatar Morph2020-12-081-1/+21
|\ | | | | Disable analog joystick from buttons by default
| * Disable analog joystick from buttons by defaultGravatar german2020-12-071-1/+21
| |
* | mouse_poller: Remove unused includesGravatar Lioncash2020-12-031-3/+1
| |
* | mouse_input: Invert conditional in UpdateYuzuSettings()Gravatar Lioncash2020-12-031-4/+6
| | | | | | | | Allows the struct to be constructed in place.
* | mouse_input: Remove two casts and amend some formattingGravatar Lioncash2020-12-031-11/+14
| | | | | | | | | | Removes the use of two static casts and improves the readability of some vectors slightly.
* | mouse_input: Resolve a -Wdocumentation warningGravatar Lioncash2020-12-031-1/+1
| |
* | mouse_input: Remove unused includesGravatar Lioncash2020-12-032-7/+3
| |
* | Merge pull request #4937 from german77/multiUDPGravatar bunnei2020-12-014-100/+149
|\ \ | | | | | | InputCommon: Add multiple udp server support
| * | Add multiple udp server supportGravatar german2020-11-254-100/+149
| | |
* | | Merge pull request #5047 from german77/MouseInputGravatar LC2020-12-011-6/+8
|\ \ \ | | | | | | | | InputCommon: Fix implicit conversion in mouse input
| * | | Fix implicit conversion in mouse inputGravatar german2020-11-301-6/+8
| | | |
* | | | Merge pull request #4939 from german77/MouseInputGravatar bunnei2020-11-299-242/+697
|\| | | | |_|/ |/| | InputCommon: Implement full mouse support
| * | Implement full mouse supportGravatar german2020-11-259-242/+697
| | |
* | | input_common: ignore some Clang warnings after 5c4774e8ce1dGravatar Jan Beich2020-11-251-2/+2
| |/ |/| | | | | | | 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]
* | Merge pull request #4905 from german77/AnalogFromButtonGravatar bunnei2020-11-241-19/+103
|\ \ | | | | | | Allow to dial any angle with digital joystick
| * | fix minor clang errorGravatar german2020-11-101-1/+1
| | |
| * | Allow to dial any angle with digital joystickGravatar german2020-11-081-19/+103
| | |
* | | input_common: Fix typo in gc_poller.cpp with [[maybe_unused]].Gravatar bunnei2020-11-231-2/+2
| | |
* | | input_common: Add more missing [[maybe_unused]] from #4927.Gravatar bunnei2020-11-233-4/+6
| | |
* | | input_common: Treat warnings as errorsGravatar Lioncash2020-11-227-9/+22
| | | | | | | | | | | | | | | Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
* | | Modify rumble amplificationGravatar german772020-11-192-4/+3
| |/ |/|
* | Merge pull request #4866 from Morph1984/mjolnir-p3-prodGravatar bunnei2020-11-1710-107/+177
|\ \ | | | | | | Project Mjölnir: Part 3 - Controller Profiles and Vibration Rework
| * | sdl_impl: Pump SDL Events at 1000 HzGravatar Morph2020-11-151-1/+1
| | |
| * | sdl_impl: Revert to the "old" method of mapping sticksGravatar Morph2020-11-151-32/+13
| | | | | | | | | | | | | | | | | | 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).
| * | controllers/npad: Remove the old vibration filterGravatar Morph2020-11-151-15/+0
| | | | | | | | | | | | 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.
| * | input_common: Add VibrationDevice and VibrationDeviceFactoryGravatar Morph2020-11-159-46/+159
| | | | | | | | | | | | | | | | | | 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.
| * | configure_input: Add per-player vibrationGravatar Morph2020-11-151-0/+3
| | | | | | | | | | | | | | | | | | | | | 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>
| * | controllers/npad: Add heuristics to reduce rumble state changesGravatar Morph2020-11-151-29/+25
| | | | | | | | | | | | | | | 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.
| * | configure_input_player: Change "Defaults" button behaviorGravatar Morph2020-11-151-8/+0
| | | | | | | | | | | | | | | RestoreDefaults() now restores the selected devices' mappings using UpdateMappingWithDefaults(). This allows us to move the keyboard mapping from RestoreDefaults() to UpdateMappingWithDefaults().
| * | udp/client: Reduce testing period to 5 secondsGravatar Morph2020-11-151-1/+1
| | |
| * | configure_input_player: Implement input exclusivity and persistenceGravatar Morph2020-11-151-3/+3
| |/ | | | | | | 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".
* | motion_input: Mark constructor as explicitGravatar Lioncash2020-11-151-1/+1
| |
* | motion_input: Mark member functions as [[nodiscard]] where applicableGravatar Lioncash2020-11-151-10/+11
|/
* Add hotplug, rumble and fix 3rd party adapters for the GC adapterGravatar german2020-10-283-303/+433
|
* sdl_impl: Fix controller reconnection issuesGravatar Morph2020-10-211-85/+84
| | | | | | | 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.
* Merge pull request #4809 from Morph1984/mjolnir-p3Gravatar LC2020-10-201-2/+0
|\ | | | | configure_input_player: Fix modifier buttons
| * configure_input_player: Fix modifier buttonsGravatar Morph2020-10-201-2/+0
| | | | | | | | Fix them for real this time, now they finally work.
* | Merge pull request #4627 from Morph1984/fix-dinput-controller-disconnectGravatar bunnei2020-10-201-15/+13
|\ \ | |/ |/| sdl_impl: Erase the SDLJoystick entry after removing a controller
| * sdl_impl: Erase the SDLJoystick entry after removing a controllerGravatar Morph2020-10-161-15/+13
| | | | | | | | | | | | | | 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.
* | udp/client: Make use of designated initializers in TestCommunication()Gravatar Lioncash2020-10-161-2/+5
| | | | | | | | Same behavior, but makes the callback list nicer to look at.
* | udp/client: Take std::function by const reference with TestCommunication()Gravatar Lioncash2020-10-162-5/+5
|/ | | | Avoids redundant copies.
* input_common/CMakeLists: Make some warnings errorsGravatar Lioncash2020-10-1516-191/+237
| | | | | Makes the input_common code warnings consistent with the rest of the codebase.
* Merge pull request #4757 from german77/BetterMotionGravatar bunnei2020-10-092-8/+102
|\ | | | | InputCommon: Add compatibility with only accelerometer and auto calibrate for drift
| * Address commentsGravatar german2020-10-042-40/+40
| |
| * Add compatibility with only accelerometer and auto calibrate for driftGravatar german2020-10-032-12/+106
| |
* | Merge pull request #4677 from german77/ShakeFromButtonGravatar bunnei2020-10-089-5/+295
|\ \ | | | | | | InputCommon: Add random motion input for buttons
| * | Add random motion input to keyboardGravatar german2020-09-254-0/+65
| | |