| Age | Commit message (Collapse) | Author |
|
Completely removes all usages of the global system instance within the
services code by passing in the using system instance to the services.
|
|
Upon further investigation, these commands allow temporary vibrations even when the "Controller Vibration" system setting is disabled. As a result, vibrations are allowed when either the system setting or this flag is set to true. Therefore, we can only block vibrations when both flags are set to false.
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
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>
|
|
This will be replaced in favor of per-player vibration strength modifiers.
|
|
The implementation of these commands seem incomplete and causes rumble in Super Mario Party to stop working since only EndPermitVibrationSession is called. Thus, these are better off being marked as a stub until this can be investigated more thoroughly.
|
|
This stops all controllers from continuously vibrating when emulation is stopped.
|
|
- Used in Super Mario Odyssey
|
|
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.
|
|
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.
|
|
Fixes vibration in 1-2 Switch and potentially other games where they would vibrate both players' joycons at the same time.
|
|
This fixes the issue where rumble is only sent to the first controller.
Now, individual controllers can receive their own rumble commands.
|
|
Some parameters need to be doubleword aligned due to the presence of the applet_resource_user_id.
Previously, this value was invalid in many commands where it was not doubleword aligned when popped.
|
|
Reorders all HID commands in command id order.
|
|
The first u32 describes the vibration device type which is a Linear Resonant Actuator used in Nintendo Switch controller hardware.
The second u32 describes the vibration device position, in this case distinguishing between left and right vibration actuators.
Pro Controllers have 2 LRAs each that can vibrate independently of each other, which means they have 2 distinct vibration device handles to distinguish between the two actuators.
Similarly for joycons, the left joycon can be distinguished from the right joycon through the vibration device handle since each joycon has 1 LRA.
|
|
|
|
This more accurately represents the underlying type and avoids confusion with NpadType
|
|
A DeviceHandle describes a vibration device or six-axis sensor based on the npad type, npad id, and device index/position
|
|
|
|
|
|
Updates function tables according to info on SwitchBrew.
|
|
|
|
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
|
|
Makes our error coverage a little more consistent across the board by
applying it to Linux side of things as well. This also makes it more
consistent with the warning settings in other libraries in the project.
This also updates httplib to 0.7.9, as there are several warning
cleanups made that allow us to enable several warnings as errors.
|
|
hid: Stub HomeButtonInputProtection service commands
|
|
HID: Only use inputs corresponding to controller type
|
|
HID: Add Stub for EnableSixAxisSensorFusion
|
|
|
|
|
|
input_common: First implementation of controller rumble
|
|
- Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now.
|
|
|
|
|
|
hid: Implement Get/SetNpadHandheldActivationMode
|
|
Test: Decrease pad_update_ns
|
|
- Used in Clubhouse Games: 51 Worldwide Classics
|
|
hid/configuration: Implement motion controls to HID
|
|
Project Mjölnir: Part 2 - Controller Applet
|
|
There have been reports of quite heavy input lag in the past.
Compared to Citra for example, our pad_update_ns value is very high.
So let's decrease it and see if it helps with this problem.
|
|
This allows toggling motion on or off, and allows access to the motion configuration.
Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
|
|
|
|
|
|
Simplifies the motion assignment in the Dual Joycon entry and assigns index 1 of the motion entry (Motion 2) for the right joycon.
|
|
|
|
- Used in multiple games such as Super Mario Odyssey.
|
|
Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required.
|