summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-10-15input_common: udp: Avoid crash when trying to map motion before client is readygerman771-0/+1
2023-10-03ci: fix new codespell errorsLiam1-1/+1
2023-07-07input_common: set `SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS` to 0Martino Fontana2-42/+11
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-07-06input_common: Avoid potential division by zeroNarr the Reg1-2/+3
2023-07-01yuzu: Ensure mouse panning can't be enabled with real mouse emulationgerman772-6/+13
2023-06-29input_common: Tune mouse controlsNarr the Reg1-37/+36
2023-06-28input_common: Remove duplicated DriverResult enumgerman772-20/+18
2023-06-25input_common: Make use of new SDL featuresgerman771-8/+20
2023-06-24Only use SDL wakelock on Linuxzeltermann1-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.
2023-06-22input_common: Implement native mifare supportNarr the Reg4-26/+271
2023-06-16input_common: Add amiibo with originality signature supportNarr the Reg2-0/+3
2023-06-12input_common: Redesign mouse panningBaptiste Marie2-52/+49
2023-06-03input_common: Fix virtual amiibosbunnei1-4/+4
2023-06-03android: Various fixes for CI.bunnei1-10/+10
2023-06-03android: Implement amiibo reading from nfc tagNarr the Reg2-4/+24
2023-06-03android: Add motion sensorNarr the Reg2-1/+27
2023-05-22input_common: Implement amiibo writtingNarr the Reg1-2/+6
2023-05-17input_common: Fix pro controller amiibo supportNarr the Reg2-5/+7
2023-05-05Improve emulation of HD Rumblemarius david1-6/+29
2023-04-14input_common: minor fix to mouse movementValeri1-1/+1
2023-03-13input_common: sdl: Only send last vibration commandgerman771-1/+16
2023-03-12general: fix spelling mistakesLiam6-8/+8
2023-03-08input_common: Minor typo issues (#9922)Narr the Reg2-3/+3
2023-03-08input_common: Increase mouse sensitivity rangegerman771-9/+18
2023-02-22input_common: Implement dedicated motion from mouseNarr the Reg2-17/+82
2023-02-16input_common: Split mouse input into individual devicesNarr the Reg2-24/+81
2023-02-14remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades795-12/+12
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation where possiblearades795-12/+12
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-10input_common: Reintroduce custom pro controller supportNarr the Reg3-3/+65
2023-01-30input_common: joycon: Fill missing enum dataNarr the Reg2-4/+2
2023-01-25input_common: Make use of StoppableTimedWaitMorph2-5/+6
2023-01-25input_common: add missing header for libc++ after 340f15d1fa79Jan Beich1-0/+1
src/input_common/drivers/joycon.cpp:187:26: error: no member named 'find_if' in namespace 'std::ranges' std::ranges::find_if(left_joycons, [](auto& device) { return !device->IsConnected(); }); ~~~~~~~~~~~~~^ src/input_common/drivers/joycon.cpp:193:54: error: no member named 'find_if' in namespace 'std::ranges' const auto unconnected_device = std::ranges::find_if( ~~~~~~~~~~~~~^ src/input_common/drivers/joycon.cpp:393:51: error: no member named 'find_if' in namespace 'std::ranges' const auto matching_device = std::ranges::find_if( ~~~~~~~~~~~~~^ src/input_common/drivers/joycon.cpp:402:51: error: no member named 'find_if' in namespace 'std::ranges' const auto matching_device = std::ranges::find_if( ~~~~~~~~~~~~~^
2023-01-20input_common: Fix joycon mappingsgerman772-57/+53
2023-01-20input_common: Address byte reviewgerman773-26/+27
2023-01-20input_common: Drop Pro controller support from custom drivergerman773-40/+3
2023-01-20input_common: Implement joycon ir cameraNarr the Reg2-9/+25
2023-01-20yuzu: Add ring controller test buttongerman771-4/+5
2023-01-20input_common: Use DriverResult on all enginesgerman7710-42/+39
2023-01-20Address review commentsgerman771-1/+1
2023-01-20input_common: Implement joycon nfcgerman771-1/+3
2023-01-20input_common: Add dual joycon supportNarr the Reg1-24/+101
2023-01-20input_common: Add support for joycon input reportsNarr the Reg1-23/+24
2023-01-20core: hid: Enable pulling color data from controllersNarr the Reg1-1/+10
2023-01-20input_common: Disable SDL driver with switch controllersNarr the Reg2-3/+20
2023-01-20input_common: Initial skeleton for custom joycon driverNarr the Reg2-0/+722
2023-01-18input_common: reset sdl motion if data is invalidgerman771-19/+35
2023-01-07TAS: Show all script lengths for multiplayerMonsterDruide12-4/+10
2022-12-18bootmanager: Use proper camera sizegerman771-0/+1
2022-12-17input_common: Add virtual gamepadgerman772-0/+151
2022-12-17camera: Use pre-allocated vector for camera dataameerj2-2/+4
And avoid an unnecessary copy
2022-12-12input_common: Filter SDL GUIDNarr the Reg1-0/+2
2022-12-05input_common: Allow mifare filesNarr the Reg2-16/+29
2022-11-27input_common: Pump sdl events from main threadgerman772-10/+8
2022-11-23general: fix compile for Apple ClangLiam4-3/+3
2022-11-14general: Address review commentsgerman772-2/+2
2022-11-13input_common: Add amiibo applet functionsgerman772-0/+18
2022-10-22general: Enforce C4800 everywhere except in video_coreMorph1-2/+2
2022-10-21input_common: cache vibration testsgerman774-11/+67
2022-10-04common: remove "yuzu:" prefix from thread namesLiam3-5/+5
2022-10-02service: nfp: address commentsgerman772-3/+3
2022-10-02input_common: Create virtual amiibo drivergerman772-0/+162
2022-09-04input_common: sdl: Always check for motion on reconnectNarr the Reg1-4/+7
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda5-13/+9
[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-07-24input_common: Add camera drivergerman772-0/+111
2022-06-29input_common: sdl: lower vibration frequency and use it's own unique threadgerman772-1/+10
2022-06-07input_common: Replace usage of string guid to common uuidNarr the Reg2-33/+38
2022-05-23input_common: Make vibration request asyncNarr the Reg2-2/+33
2022-05-23input_common: touch: Rewrite touch driver to support multiple touch pointsgerman772-31/+110
2022-05-02Revert "gc_adapter: fix libusb import on GCC11.2"Morph1-4/+0
This reverts commit f72f4377f4cbbe45e5a43bb67c7245737ffa135f.
2022-05-02gc_adapter: fix libusb import on GCC11.2Levi Behunin1-0/+4
Just to silence an intermittent error. GCC11.2 complains cannot find 'libusb.h' during a fresh build.
2022-04-28chore: add missing SPDX tagsAndrea Pappacoda2-6/+4
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
2022-04-23general: Convert source file copyright comments over to SPDXMorph8-24/+16
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-07input_common: Replace lock_guard with scoped_lockMerry1-6/+6
2022-03-22input_common: Map sticks correctly when mapped sidewaysNarr the Reg6-0/+71
2022-03-20input_common: Reduce unused includesameerj1-1/+0
2022-02-07yuzu: Add auto center on right clickgerman771-3/+3
2022-02-07input_common: Remove battery duplicated struct and update every button pressgerman773-15/+18
2022-02-05general: Rename NewUUID to UUID, and remove the previous UUID implMorph8-13/+13
This completes the removal of the old UUID implementation.
2022-02-05input/hid: Migrate to the new UUID implementationMorph8-17/+17
2022-02-02yuzu: ui: Improve battery symbolsNarr the Reg1-3/+2
2022-01-30input_common: Add home and hard touch press buttons to UDP controllersgerman772-3/+16
2022-01-27input_common: Add DS5 to HD rumble listNarr the Reg1-2/+3
2022-01-24input_common/udp_client: Replace deprecated from_string()/to_ulong() functionsLioncash1-2/+2
These are deprecated and make_address variants and to_uint() should be used instead.
2022-01-24input_common/udp_client: Prevent unnecessary string copiesLioncash2-4/+4
We can also remove some redundant const on the return values, since these don't do anything
2022-01-17input_common: Report battery for UDP controllersNarr the Reg2-0/+25
2022-01-17input_common: fix copy-paste errorValeri1-1/+1
Found by static analysis with PVS-Studio.
2022-01-17input_common: Reintroduce motion from mouse and use button namesgerman772-1/+34
2022-01-15Xbox controller default name nit pickgidoly1-2/+2
Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
2022-01-15Change default name for ps controllersgidoly1-0/+6
Minor nitpick Code is from narr
2022-01-08input_common: Handle errors on TAS scriptsgerman771-7/+24
2022-01-07input_common: Fix udp motion not automapping to both sidesgerman771-8/+16
2022-01-07yuzu: Add controller hotkeysgerman773-4/+7
2021-12-17[input_common] Move variable declaration closer to usagevperus1-2/+2
MSVC supplied with VS2022 generates "warning C4189: 'CALIBRATION_THRESHOLD': local variable is initialized but not referenced" which is treated as an error. Circumvent it by moving constexpr variable directly into body of lambda function.
2021-12-14input/SDL: Update SDL hintsValeri1-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.
2021-12-13tas_input: Avoid minor copies in Read/WriteCommandButtons()Lioncash1-2/+2
We don't need to copy the whole pair
2021-12-13tas_input: Remove unnecessary semicolonLioncash1-1/+1
Resolves a -Wextra-semi warning
2021-12-13tas_input: Execute clear() even if emptyLioncash1-3/+2
clear() when empty is simply a no-op, so we can get rid of the check here and let the stdlib do it for us.
2021-12-13tas_input: Remove unnecessary includesLioncash1-2/+2
Gets rid of indirect includes and includes only what the interface needs.
2021-12-13tas_input: std::move strings into vectorLioncash1-21/+24
While we're in the same area, we can also avoid performing std::stoi in a loop when it only needs to be performed once.
2021-12-13tas_input: Use istringstream over stringstreamLioncash1-2/+2
This is only using the input facilities, so we don't need to use the fully-fleged stringstream.
2021-12-13tas_input: Use u8string_view instead of u8stringLioncash2-6/+7
Same behavior, but without the potential for extra allocations.
2021-12-13tas_input: Remove unused std::smatch variableLioncash1-2/+0
This also means we can get rid of the dependency on <regex>
2021-12-13tas_input: Amend -Wdocumentation warningsLioncash2-28/+30
Parameters shouldn't have the colon by their name.
2021-12-13tas_input: Make TasAxes enum an enum classLioncash2-5/+14
Prevents these values from potentially clashing with anything in other headers.
2021-12-13input_engine: Take BasicMotion by const reference with SetMotion() and TriggerOnMotionChange()Lioncash1-2/+2
Copies the BasicMotion instance once instead of twice.
2021-12-13input_engine: Pass VibrationStatus by const reference in SetRumble()Lioncash4-6/+8
Avoids creating copies of the struct where not necessary.
2021-12-13input_engine: std::move engine name where applicableLioncash14-28/+28
We can allow the name to be moved into, allowing allocations to be avoided.
2021-11-30input_common: Fix error with thread nameNarr the Reg1-2/+1
2021-11-29Revert of b01aa72vperus1-35/+39
Caused worker_thread to be stuck in Stage1Completed state until job's destruction.
2021-11-26input_common: Fully implement UDP controllersNarr the Reg2-8/+254
2021-11-25input_common: Move button names to the frontendgerman776-33/+35
2021-11-25input_common: Fix SDL controller with inverted axisgerman771-23/+0
2021-11-25kraken: Address comments from reviewgerman7710-23/+11
Fix compiler bug
2021-11-25core/hid: Improve accuary of mouse implementationgerman772-8/+14
2021-11-25core/hid: Fully implement native mousegerman772-6/+32
2021-11-25input_common: Allow keyboard to be backwards compatiblegerman772-14/+52
2021-11-25core/hid: Improve accuracy of the keyboard implementationgerman772-4/+56
2021-11-25core/hid: Prevent Emulated controller from flapping with multiple inputs devicesgerman772-23/+12
2021-11-25second commit lion reviewgerman776-19/+18
2021-11-25settings: Fix Debug controller type optionsgerman771-1/+0
2021-11-25kraken: Address comments from reviewgerman777-23/+23
start lion review
2021-11-25input_common: Revert deleted TAS functionsgerman772-18/+19
2021-11-25input_common: Fix GC adapter initializationgerman771-12/+12
Fix GC controller
2021-11-25input_common: Fix UDP uuidgerman772-1/+11
2021-11-25input_common: Add multiple vibration curvesgerman771-14/+19
2021-11-25settings: Fix mouse and keyboard mappingsgerman772-1/+17
2021-11-25kraken: Address comments from reviewgerman772-2/+4
review fixes
2021-11-25service/hid: Fix gesture inputgerman772-2/+29
2021-11-25core/hid: Fix rumble too strong at 1%german771-1/+19
2021-11-25core/hid: Only signal when neededgerman775-23/+84
2021-11-25kraken: Fix errors from rebase and format filesgerman773-3/+4
2021-11-25core/hid: Add output devicesgerman774-6/+14
2021-11-25input_common: Rewrite SDLgerman772-0/+1035
2021-11-25input_common: Rewrite udp clientgerman772-0/+491
2021-11-25input_common: Rewrite gc_adaptergerman774-0/+1131
2021-11-25input_common: Rewrite touchgerman772-0/+97
2021-11-25input_common: Rewrite mousegerman772-0/+215
2021-11-25input_common: Rewrite keyboardgerman772-0/+79