summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
2021-01-23sdl_impl: Set the maximum vibration duration to 1 secondMorph
2021-01-15Always initialize keyboard inputgerman
2021-01-15Add mutitouch support for touch screensgerman
2021-01-15Allow to return up to 16 touch inputs per enginegerman
2021-01-02general: Fix various spelling errorsMorph
2020-12-30Merge pull request #5265 from german77/port5509bunnei
Port citra-emu/citra#5509 "Look at direction of analog axis travel instead of instantaneous sample"
2020-12-30Port citra-emu/citra#5509german
2020-12-29Merge pull request #5236 from gal20/udp_client_patchbunnei
input_common: process udp packets only for the correct pad
2020-12-27udp client: process packets only for the correct padgal20
2020-12-26Allow to invert analog axis with right clickgerman
2020-12-08Merge pull request #5020 from german77/AnalogfromButtonFixMorph
Disable analog joystick from buttons by default
2020-12-07Disable analog joystick from buttons by defaultgerman
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.