aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio.Renderer/Utils/SpanMemoryManager.cs
diff options
context:
space:
mode:
authorJose Padilla <sargepl@gmail.com>2021-02-21 00:22:55 +0100
committerGitHub <noreply@github.com>2021-02-21 00:22:55 +0100
commitad7d22777f60f58f96d4f5bca879134b6924390a (patch)
tree4164472ef1aa454a9e372c9981f63bda805e5dc0 /Ryujinx.Audio.Renderer/Utils/SpanMemoryManager.cs
parentd5081e3f93a3283ca7e73358d24d76d110ea962f (diff)
Controller Input handling refactoring (#1751)
* This should fix issue #1374 in Linux Changes: - Bind buttons by detecting the transition from down to up. - Bind axis by detecting movement from value higher than 50% to a value lower than 50%. Caveats: - I have tested only with DS3 in Linux (Fedora 32). - ZL and ZR detection works by accident. This code doesn't take negative axis into account. The reason it works is because axis are managed in absolute value. So when pressing ZL/ZR axis value goes from -1 to 1 (or 1 to 0 and back to 1) and this hits the axis detector. - Likely I have broken all the other controllers xD (testing needed). * Assign keyboardPressed * Make a more robust detection of pressed buttons when using a controller * Add interface to bind buttons from Joystick and Keyboard * Fix style issues after code review by @AcK77 (Thanks!) * Move new classes to Ryujinx.Ui.Input namespace * Use explicit types instead of var * Update Ryujinx/Ui/Input/JoystickButtonAssigner.cs Co-authored-by: Mary <thog@protonmail.com> * Update Ryujinx/Ui/Input/JoystickButtonAssigner.cs Co-authored-by: Mary <thog@protonmail.com> * Update Ryujinx/Ui/Input/JoystickButtonAssigner.cs Co-authored-by: Mary <thog@protonmail.com> * Update Ryujinx/Ui/Input/JoystickButtonAssigner.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Add a new empty line before * Up Co-authored-by: Jose Padilla <jose@prensalink.com> Co-authored-by: Mary <thog@protonmail.com> Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'Ryujinx.Audio.Renderer/Utils/SpanMemoryManager.cs')
0 files changed, 0 insertions, 0 deletions