aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/drivers/sdl_driver.cpp
AgeCommit message (Collapse)Author
2023-11-11core: hid: Split SL and SR buttonsgerman77
2023-07-07input_common: set `SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS` to 0Martino Fontana
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 https://github.com/libsdl-org/SDL/blob/92b3c53c92971e685254fd89f89ce6bde8cea60e/include/SDL_hints.h#L512-L532)
2023-06-27Merge pull request #10679 from zeltermann/wakelock-reasonliamwhite
Only use SDL wakelock on Linux
2023-06-24input_common: Make use of new SDL featuresgerman77
2023-06-24Only use SDL wakelock on Linuxzeltermann
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.
2023-05-05Improve emulation of HD Rumblemarius david
2023-03-12input_common: sdl: Only send last vibration commandgerman77
2023-03-12general: fix spelling mistakesLiam
2023-02-14remove static from pointer sized or smaller types for aesthetics, change ↵arades79
constexpr static to static constexpr for consistency Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation ↵arades79
where possible Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-09input_common: Reintroduce custom pro controller supportNarr the Reg
2023-01-24Merge pull request #9492 from german77/joycon_releaseliamwhite
Input_common: Implement custom joycon driver v2
2023-01-20input_common: Address byte reviewgerman77
2023-01-19input_common: Drop Pro controller support from custom drivergerman77
2023-01-19input_common: Use DriverResult on all enginesgerman77
2023-01-19input_common: Disable SDL driver with switch controllersNarr the Reg
2023-01-18input_common: reset sdl motion if data is invalidgerman77
2022-12-12input_common: Filter SDL GUIDNarr the Reg
2022-11-27input_common: Pump sdl events from main threadgerman77
2022-10-25Merge pull request #9107 from german77/gidoly_rulesliamwhite
input_common: cache vibration tests
2022-10-22general: Enforce C4800 everywhere except in video_coreMorph
2022-10-21input_common: cache vibration testsgerman77
2022-10-03common: remove "yuzu:" prefix from thread namesLiam
2022-09-03input_common: sdl: Always check for motion on reconnectNarr the Reg
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda
[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 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-06-28input_common: sdl: lower vibration frequency and use it's own unique threadgerman77
2022-06-06input_common: Replace usage of string guid to common uuidNarr the Reg
2022-05-23input_common: Make vibration request asyncNarr the Reg
2022-04-21Merge pull request #7978 from german77/sidewaybunnei
input_common: Map sticks correctly when mapped sideways
2022-04-07input_common: Replace lock_guard with scoped_lockMerry
2022-03-21input_common: Map sticks correctly when mapped sidewaysNarr the Reg
2022-02-24Merge pull request #7859 from german77/battery_againbunnei
input_common: Remove battery duplicated struct and update every button press
2022-02-10Merge pull request #7852 from Morph1984/new-uuidbunnei
common: Revise and fix the UUID implementation
2022-02-06yuzu: Add auto center on right clickgerman77
2022-02-06input_common: Remove battery duplicated struct and update every button pressgerman77
2022-02-05general: Rename NewUUID to UUID, and remove the previous UUID implMorph
This completes the removal of the old UUID implementation.
2022-02-05input/hid: Migrate to the new UUID implementationMorph
2022-02-02yuzu: ui: Improve battery symbolsNarr the Reg
2022-01-26input_common: Add DS5 to HD rumble listNarr the Reg
2022-01-16Xbox controller default name nit pickgidoly
Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
2022-01-15Change default name for ps controllersgidoly
Minor nitpick Code is from narr
2022-01-06yuzu: Add controller hotkeysgerman77
2021-12-14Merge pull request #7577 from v1993/patch-2Narr the Reg
input/SDL: Update SDL hints
2021-12-14input/SDL: Update SDL hintsValeri
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.
2021-12-13input_engine: Take BasicMotion by const reference with SetMotion() and ↵Lioncash
TriggerOnMotionChange() Copies the BasicMotion instance once instead of twice.
2021-12-13input_engine: Pass VibrationStatus by const reference in SetRumble()Lioncash
Avoids creating copies of the struct where not necessary.
2021-12-13input_engine: std::move engine name where applicableLioncash
We can allow the name to be moved into, allowing allocations to be avoided.
2021-11-29input_common: Fix error with thread nameNarr the Reg
2021-11-24input_common: Move button names to the frontendgerman77
2021-11-24input_common: Fix SDL controller with inverted axisgerman77