summaryrefslogtreecommitdiff
path: root/src/yuzu/applets/controller.cpp
AgeCommit message (Collapse)Author
2021-04-13applets/controller: Hook up the "Motion" button functionalityMorph
I forgot to hook this up during the development of the controller applet, this PR amends that.
2021-02-07hid: Implement GC controllergerman
2021-01-01configure_input: Modify controller connection delayMorph
Increases the controller connection delay to 60ms and refactors it to attempt to disconnect all controllers prior to connecting all controllers in HID.
2020-12-05applets: Resolve variable shadowingMorph
2020-11-20applets/controller: Use a pair of emulated controller index to controller typeMorph
2020-11-15general: Fix compiler warnings on linux and miscellaneous changesMorph
2020-11-15applets/controller: Change the input button to create input profilesMorph
Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-11-15input: Disconnect a controller prior to connecting a new oneMorph
Some games do not respond to a change in controller type if 1) The controller is not disconnected prior to being reconnected and/or 2) The controller is reconnected instantly after being disconnected. Since it is not possible to change controllers instantly on hardware and requiring a disconnect prior to connecting a new one, we should emulate this as well with a small delay, fixing the aforementioned issue.
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-15settings: Remove global vibration strength modifierMorph
This will be replaced in favor of per-player vibration strength modifiers.
2020-11-15configure_input: Hook up the vibration percentage spinboxMorph
This allows setting the vibration strength percentage anywhere from 1% to 100%. Also hooks up the remaining motion button and checkbox in the Controller Applet.
2020-11-15settings: Preparation for per-game input settingsMorph
2020-11-15applets/controller: Auto accept a valid single player configurationMorph
2020-10-26Merge pull request #4834 from lioncash/copy-fnbunnei
controller: Pass ControllerParameters by reference in ReconfigureControllers()
2020-10-26controller: Pass ControllerParameters by reference in ReconfigureControllers()Lioncash
Prevents unnecessary copies and heap reallocations from occurring.
2020-10-25Merge pull request #4827 from lioncash/truncRodrigo Locatti
controller: Convert led_patterns integer literals to bool literals
2020-10-25general: Use template deduction guides for lock_guardLioncash
Same behavior, less code.
2020-10-25controller: Convert led_patterns integer literals to bool literalsLioncash
'bool' isn't always guaranteed to be the same size as an int, so this can technically cause truncation warnings if we support other platforms.
2020-09-04applets/controller: Resolve several compiler warningsMorph
Resolves -Wsign-compare and -Wunused-variable
2020-09-04Address feedbackMorph
2020-09-04clang-formatMorph
2020-09-04applets/controller: Load configuration prior to setting up connectionsMorph
This avoids unintentionally changing the states of elements while loading them in.
2020-09-04applets/controller: Make 8 a static constexpr value of NUM_PLAYERSMorph
Avoids repetitive usages of the int literal '8' or calls to player_widgets.size()
2020-09-04applets/controller: Implement "Explain Text"Morph
"Explain Text" is additional text that is shown for each player in the controller applet.
2020-09-04Project Mjölnir: Part 2 - Controller AppletMorph
Co-authored-by: Its-Rei <kupfel@gmail.com>