Commit Graph

56 Commits (169b198d084b925d3ad7048e939e8d25a83a34b8)

Author SHA1 Message Date
Martino Fontana aa882cdaa8 input_common: set `SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS` to 0
This allows to share the mappings between Nintendo and non-Nintendo controllers.
Breaks the controller configuration for existing users who are using a Nintendo controller.

(Documentation of the hint 92b3c53c92/include/SDL_hints.h (L512-L532))
2 years ago
liamwhite f254ce2c60
Merge pull request #10679 from zeltermann/wakelock-reason
Only use SDL wakelock on Linux
2 years ago
german77 474fa13a1a input_common: Make use of new SDL features 2 years ago
zeltermann 482fbded9b Only use SDL wakelock on Linux
SDL has internally fixed shenanigans related to wakelocking through DBus
from inside sandboxes from around August 2022, so we can now remove the
workaround we used since 2021.
2 years ago
marius david 0a6bd8b236 Improve emulation of HD Rumble 2 years ago
german77 96b8a3ecac input_common: sdl: Only send last vibration command 3 years ago
Liam 600f325d87 general: fix spelling mistakes 3 years ago
arades79 683019878f remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
arades79 45e13b03f3 add static lifetime to constexpr values to force compile time evaluation where possible
Signed-off-by: arades79 <scravers@protonmail.com>
3 years ago
Narr the Reg acba9a6b76 input_common: Reintroduce custom pro controller support 3 years ago
liamwhite a68af583ea
Merge pull request #9492 from german77/joycon_release
Input_common: Implement custom joycon driver v2
3 years ago
german77 340f15d1fa input_common: Address byte review 3 years ago
german77 b40aefb39e input_common: Drop Pro controller support from custom driver 3 years ago
german77 527dad7097 input_common: Use DriverResult on all engines 3 years ago
Narr the Reg 2d802893e7 input_common: Disable SDL driver with switch controllers 3 years ago
german77 db6cb9cc0a input_common: reset sdl motion if data is invalid 3 years ago
Narr the Reg 3e1e6c66c0 input_common: Filter SDL GUID 3 years ago
german77 7d8095d944 input_common: Pump sdl events from main thread 3 years ago
liamwhite 77803d96be
Merge pull request #9107 from german77/gidoly_rules
input_common: cache vibration tests
3 years ago
Morph e6ab1f673b general: Enforce C4800 everywhere except in video_core 3 years ago
german77 7f66050f0c input_common: cache vibration tests 3 years ago
Liam 35d3e7db2a common: remove "yuzu:" prefix from thread names 3 years ago
Narr the Reg c3b16cf8d3 input_common: sdl: Always check for motion on reconnect 3 years ago
Andrea Pappacoda cdb240f3d4
chore: make yuzu REUSE compliant
[REUSE] is a specification that aims at making file copyright
information consistent, so that it can be both human and machine
readable. It basically requires that all files have a header containing
copyright and licensing information. When this isn't possible, like
when dealing with binary assets, generated files or embedded third-party
dependencies, it is permitted to insert copyright information in the
`.reuse/dep5` file.

Oh, and it also requires that all the licenses used in the project are
present in the `LICENSES` folder, that's why the diff is so huge.
This can be done automatically with `reuse download --all`.

The `reuse` tool also contains a handy subcommand that analyzes the
project and tells whether or not the project is (still) compliant,
`reuse lint`.

Following REUSE has a few advantages over the current approach:

- Copyright information is easy to access for users / downstream
- Files like `dist/license.md` do not need to exist anymore, as
  `.reuse/dep5` is used instead
- `reuse lint` makes it easy to ensure that copyright information of
  files like binary assets / images is always accurate and up to date

To add copyright information of files that didn't have it I looked up
who committed what and when, for each file. As yuzu contributors do not
have to sign a CLA or similar I couldn't assume that copyright ownership
was of the "yuzu Emulator Project", so I used the name and/or email of
the commit author instead.

[REUSE]: https://reuse.software

Follow-up to 01cf05bc75
3 years ago
german77 5e7e55b98a input_common: sdl: lower vibration frequency and use it's own unique thread 3 years ago
Narr the Reg 28877cea31 input_common: Replace usage of string guid to common uuid 3 years ago
Narr the Reg bf948b5790 input_common: Make vibration request async 3 years ago
bunnei 764e5c7fe5
Merge pull request #7978 from german77/sideway
input_common: Map sticks correctly when mapped sideways
4 years ago
Merry 159ae5e47c input_common: Replace lock_guard with scoped_lock 4 years ago
Narr the Reg ee532e5c01 input_common: Map sticks correctly when mapped sideways 4 years ago
bunnei 1079215871
Merge pull request #7859 from german77/battery_again
input_common: Remove battery duplicated struct and update every button press
4 years ago
bunnei ca9da569ce
Merge pull request #7852 from Morph1984/new-uuid
common: Revise and fix the UUID implementation
4 years ago
german77 6a4ab3e0d2 yuzu: Add auto center on right click 4 years ago
german77 21742f0096 input_common: Remove battery duplicated struct and update every button press 4 years ago
Morph 25db62ce15 general: Rename NewUUID to UUID, and remove the previous UUID impl
This completes the removal of the old UUID implementation.
4 years ago
Morph cb30fe50cd input/hid: Migrate to the new UUID implementation 4 years ago
Narr the Reg 064aa3de11 yuzu: ui: Improve battery symbols 4 years ago
Narr the Reg fd1cef5616 input_common: Add DS5 to HD rumble list 4 years ago
gidoly 92d676d788
Xbox controller default name nit pick
Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
4 years ago
gidoly 7978ea4e8c
Change default name for ps controllers
Minor nitpick
Code is from narr
4 years ago
german77 72c8a94a6c yuzu: Add controller hotkeys 4 years ago
Narr the Reg ac0c5be7c0
Merge pull request #7577 from v1993/patch-2
input/SDL: Update SDL hints
4 years ago
Valeri 7f965172c5
input/SDL: Update SDL hints
SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED is no longer needed thanks to new default in SDL 2.0.18.
SDL_HINT_JOYSTICK_HIDAPI_XBOX is reported to cause conflicts with native driver Xbox driver on Linux, and Xbox controllers don't benefit from hidapi anyways.
4 years ago
Lioncash 755822ceec input_engine: Take BasicMotion by const reference with SetMotion() and TriggerOnMotionChange()
Copies the BasicMotion instance once instead of twice.
4 years ago
Lioncash 38f3442ea5 input_engine: Pass VibrationStatus by const reference in SetRumble()
Avoids creating copies of the struct where not necessary.
4 years ago
Lioncash 2b92d22bda input_engine: std::move engine name where applicable
We can allow the name to be moved into, allowing allocations to be
avoided.
4 years ago
Narr the Reg e4492a9a82
input_common: Fix error with thread name 4 years ago
german77 746c85b560 input_common: Move button names to the frontend 4 years ago
german77 c4760489a0 input_common: Fix SDL controller with inverted axis 4 years ago
german77 42949738f2 kraken: Address comments from review
Fix compiler bug
4 years ago