summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
2021-02-18Revert "Port citra-emu/citra#5123: "SDL: Disable hidapi drivers due to ↵Morph
compatibility problems with certain controllers""
2021-02-16Merge pull request #5929 from german77/mousePanningMorph
Improve mouse panning
2021-02-15Merge pull request #3603 from FearlessTobi/port-5123bunnei
Port citra-emu/citra#5123: "SDL: Disable hidapi drivers due to compatibility problems with certain controllers"
2021-02-15Merge pull request #4940 from german77/nativeGCbunnei
HID: Implement GC controller in game
2021-02-13Improve mouse panninggerman
2021-02-11Merge pull request #5869 from german77/mousePanningbunnei
input_common: Add mouse panning
2021-02-09udp: Silence unused member variable warningsLioncash
Simply mark them as unused for now.
2021-02-09udp/client: Define ClientData constructor/destructor in cpp fileLioncash
Prevents compilation errors on clang 12 due to incomplete types within a unique_ptr member.
2021-02-07hid: Implement GC controllergerman
2021-02-07Add mouse panninggerman
2021-02-06Add SL SR vectors, change dual joycon view, add missing raw data from ↵german
keyboard/mouse
2021-02-06Make settings controller image change with controller inputgerman
2021-01-29analog_from_button: Fix update_thread.join exceptionameerj
This commit aims to address an exception that occurs when trying to join the Analog object's update_thread. By using an atomic bool for the status of the update thread, we ensure its value is consistent across the threads accessing it.
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().