summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers/sdl_driver.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input_common: set `SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS` to 0Martino Fontana2023-07-071-37/+9
| | | | | | | 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)
* Merge pull request #10679 from zeltermann/wakelock-reasonliamwhite2023-06-271-0/+4
|\ | | | | Only use SDL wakelock on Linux
| * Only use SDL wakelock on Linuxzeltermann2023-06-241-0/+4
| | | | | | | | | | | | 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.
* | input_common: Make use of new SDL featuresgerman772023-06-251-8/+20
|/
* Improve emulation of HD Rumblemarius david2023-05-051-6/+29
|
* input_common: sdl: Only send last vibration commandgerman772023-03-131-1/+16
|
* general: fix spelling mistakesLiam2023-03-121-2/+2
|
* remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades792023-02-141-4/+4
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* add static lifetime to constexpr values to force compile time evaluation where possiblearades792023-02-141-4/+4
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* input_common: Reintroduce custom pro controller supportNarr the Reg2023-02-101-2/+16
|
* Merge pull request #9492 from german77/joycon_releaseliamwhite2023-01-241-5/+18
|\ | | | | Input_common: Implement custom joycon driver v2
| * input_common: Address byte reviewgerman772023-01-201-1/+1
| |
| * input_common: Drop Pro controller support from custom drivergerman772023-01-201-3/+3
| |
| * input_common: Use DriverResult on all enginesgerman772023-01-201-2/+2
| |
| * input_common: Disable SDL driver with switch controllersNarr the Reg2023-01-201-3/+16
| |
* | input_common: reset sdl motion if data is invalidgerman772023-01-181-19/+35
|/
* input_common: Filter SDL GUIDNarr the Reg2022-12-121-0/+2
|
* input_common: Pump sdl events from main threadgerman772022-11-271-9/+6
|
* Merge pull request #9107 from german77/gidoly_rulesliamwhite2022-10-251-8/+56
|\ | | | | input_common: cache vibration tests
| * input_common: cache vibration testsgerman772022-10-211-8/+56
| |
* | general: Enforce C4800 everywhere except in video_coreMorph2022-10-221-2/+2
|/
* common: remove "yuzu:" prefix from thread namesLiam2022-10-041-2/+2
|
* input_common: sdl: Always check for motion on reconnectNarr the Reg2022-09-041-4/+7
|
* chore: make yuzu REUSE compliantAndrea Pappacoda2022-07-271-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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
* input_common: sdl: lower vibration frequency and use it's own unique threadgerman772022-06-291-1/+9
|
* input_common: Replace usage of string guid to common uuidNarr the Reg2022-06-071-26/+30
|
* input_common: Make vibration request asyncNarr the Reg2022-05-231-2/+21
|
* Merge pull request #7978 from german77/sidewaybunnei2022-04-221-0/+33
|\ | | | | input_common: Map sticks correctly when mapped sideways
| * input_common: Map sticks correctly when mapped sidewaysNarr the Reg2022-03-221-0/+33
| |
* | input_common: Replace lock_guard with scoped_lockMerry2022-04-071-6/+6
|/
* Merge pull request #7859 from german77/battery_againbunnei2022-02-241-7/+10
|\ | | | | input_common: Remove battery duplicated struct and update every button press
| * input_common: Remove battery duplicated struct and update every button pressgerman772022-02-071-7/+10
| |
* | Merge pull request #7852 from Morph1984/new-uuidbunnei2022-02-111-2/+2
|\ \ | | | | | | common: Revise and fix the UUID implementation
| * | general: Rename NewUUID to UUID, and remove the previous UUID implMorph2022-02-051-1/+1
| | | | | | | | | | | | This completes the removal of the old UUID implementation.
| * | input/hid: Migrate to the new UUID implementationMorph2022-02-051-3/+3
| |/
* / yuzu: Add auto center on right clickgerman772022-02-071-3/+3
|/
* yuzu: ui: Improve battery symbolsNarr the Reg2022-02-021-3/+2
|
* input_common: Add DS5 to HD rumble listNarr the Reg2022-01-271-2/+3
|
* Xbox controller default name nit pickgidoly2022-01-151-2/+2
| | | Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
* Change default name for ps controllersgidoly2022-01-151-0/+6
| | | | Minor nitpick Code is from narr
* yuzu: Add controller hotkeysgerman772022-01-071-0/+2
|
* Merge pull request #7577 from v1993/patch-2Narr the Reg2021-12-141-3/+4
|\ | | | | input/SDL: Update SDL hints
| * input/SDL: Update SDL hintsValeri2021-12-141-3/+4
| | | | | | | | | | 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.
* | input_engine: Take BasicMotion by const reference with SetMotion() and TriggerOnMotionChange()Lioncash2021-12-131-2/+2
| | | | | | | | Copies the BasicMotion instance once instead of twice.
* | input_engine: Pass VibrationStatus by const reference in SetRumble()Lioncash2021-12-131-2/+4
| | | | | | | | Avoids creating copies of the struct where not necessary.
* | input_engine: std::move engine name where applicableLioncash2021-12-131-1/+1
|/ | | | | We can allow the name to be moved into, allowing allocations to be avoided.
* input_common: Fix error with thread nameNarr the Reg2021-11-301-2/+1
|
* input_common: Move button names to the frontendgerman772021-11-251-8/+7
|
* input_common: Fix SDL controller with inverted axisgerman772021-11-251-23/+0
|
* kraken: Address comments from reviewgerman772021-11-251-1/+1
| | | | Fix compiler bug
* kraken: Address comments from reviewgerman772021-11-251-8/+8
| | | | start lion review
* input_common: Add multiple vibration curvesgerman772021-11-251-14/+19
|
* core/hid: Fix rumble too strong at 1%german772021-11-251-1/+19
|
* core/hid: Only signal when neededgerman772021-11-251-8/+14
|
* core/hid: Add output devicesgerman772021-11-251-2/+6
|
* input_common: Rewrite SDLgerman772021-11-251-0/+915