- 16 Nov, 2020 33 commits
-
-
Morph authored
-
Morph authored
-
Morph authored
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).
-
Morph authored
Co-authored-by: Its-Rei <kupfel@gmail.com>
-
Morph authored
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.
-
Morph authored
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.
-
Morph authored
-
Morph authored
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.
-
Morph authored
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>
-
Morph authored
This will be replaced in favor of per-player vibration strength modifiers.
-
Morph authored
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.
-
Morph authored
This stops all controllers from continuously vibrating when emulation is stopped.
-
Morph authored
- Used in Super Mario Odyssey
-
Morph authored
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.
-
Morph authored
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.
-
Morph authored
Fixes vibration in 1-2 Switch and potentially other games where they would vibrate both players' joycons at the same time.
-
Morph authored
This fixes the issue where rumble is only sent to the first controller. Now, individual controllers can receive their own rumble commands.
-
Morph authored
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.
-
Morph authored
Reorders all HID commands in command id order.
-
Morph authored
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.
-
Morph authored
-
Morph authored
This more accurately represents the underlying type and avoids confusion with NpadType
-
Morph authored
A DeviceHandle describes a vibration device or six-axis sensor based on the npad type, npad id, and device index/position
-
Morph authored
RestoreDefaults() now restores the selected devices' mappings using UpdateMappingWithDefaults(). This allows us to move the keyboard mapping from RestoreDefaults() to UpdateMappingWithDefaults().
-
Morph authored
-
Morph authored
-
Morph authored
Co-authored-by: lat9nq <lat9nq@virginia.edu>
-
Morph authored
-
Morph authored
-
Morph authored
Previously mouse clicks will not register when touch is disabled. This rectifies that and allows mouse clicks to be mapped to other buttons if the touchscreen is disabled.
-
Morph authored
-
Morph authored
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".
-
Morph authored
-
- 15 Nov, 2020 1 commit
-
-
LC authored
bootmanager: Log and show GL_RENDERER string when GPU is insufficient
-
- 13 Nov, 2020 1 commit
-
-
bunnei authored
applets/controller: Introduce additional checks for mode and caller
-
- 10 Nov, 2020 3 commits
-
-
bunnei authored
hle: service: caps_u: Stub GetAlbumFileList3AaeAruid.
-
lat9nq authored
Changes QMessageBox usages to warnings, as the problems they bring to light are being safely handled by the application and do not warrant something of the "critical" level. Changes LOG_CRITICAL to LOG_ERROR for the same reason. Preferring ERROR to WARNING as yuzu is denying loading of any guest applications after checking for these conditions. Moved logging the GL_RENDERER string into GetUnsupportedGLExtensions() to make more clear that unsupported extensions were already being logged. Makes placement of the logs easier to understand later, as well.
-
lat9nq authored
Changes the first message to not include the OpenGL version, as the error is caused by OpenGL failing to load. Adds a new check for OpenGL version 4.3. This will display a message with a similar error as well as the GL_RENDERER string. Adds a CRITICAL log message when triggered. This prevents a crash with yuzu trying to use older OpenGL versions. Modifies the unsupported extension message to output the GL_RENDERER string in the message, as well as logging the string.
-
- 09 Nov, 2020 1 commit
-
-
Rodrigo Locatti authored
cpu_interrupt_handler: Mark move contructor/assignment as deleted
-
- 08 Nov, 2020 1 commit
-
-
Rodrigo Locatti authored
ipc_helpers: Remove usage of the global system instance
-