summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: fix spelling mistakesLiam2023-03-126-8/+8
|
* Merge pull request #9906 from german77/metroid2bunnei2023-03-081-9/+18
|\ | | | | input_common: Increase mouse sensitivity range
| * input_common: Increase mouse sensitivity rangegerman772023-03-081-9/+18
| |
* | input_common: Minor typo issues (#9922)Narr the Reg2023-03-082-3/+3
|/
* input_common: Implement dedicated motion from mouseNarr the Reg2023-02-222-17/+82
|
* input_common: Split mouse input into individual devicesNarr the Reg2023-02-162-24/+81
|
* remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades792023-02-145-12/+12
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* add static lifetime to constexpr values to force compile time evaluation where possiblearades792023-02-145-12/+12
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* input_common: Reintroduce custom pro controller supportNarr the Reg2023-02-103-3/+65
|
* input_common: joycon: Fill missing enum dataNarr the Reg2023-01-302-4/+2
|
* input_common: Make use of StoppableTimedWaitMorph2023-01-252-5/+6
|
* input_common: add missing header for libc++ after 340f15d1fa79Jan Beich2023-01-251-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( ~~~~~~~~~~~~~^
* Merge pull request #9492 from german77/joycon_releaseliamwhite2023-01-2410-20/+822
|\ | | | | Input_common: Implement custom joycon driver v2
| * input_common: Fix joycon mappingsgerman772023-01-202-57/+53
| |
| * input_common: Address byte reviewgerman772023-01-203-26/+27
| |
| * input_common: Drop Pro controller support from custom drivergerman772023-01-203-40/+3
| |
| * input_common: Implement joycon ir cameraNarr the Reg2023-01-202-9/+25
| |
| * yuzu: Add ring controller test buttongerman772023-01-201-4/+5
| |
| * input_common: Use DriverResult on all enginesgerman772023-01-2010-42/+39
| |
| * Address review commentsgerman772023-01-201-1/+1
| |
| * input_common: Implement joycon nfcgerman772023-01-201-1/+3
| |
| * input_common: Add dual joycon supportNarr the Reg2023-01-201-24/+101
| |
| * input_common: Add support for joycon input reportsNarr the Reg2023-01-201-23/+24
| |
| * core: hid: Enable pulling color data from controllersNarr the Reg2023-01-201-1/+10
| |
| * input_common: Disable SDL driver with switch controllersNarr the Reg2023-01-202-3/+20
| |
| * input_common: Initial skeleton for custom joycon driverNarr the Reg2023-01-202-0/+722
| |
* | input_common: reset sdl motion if data is invalidgerman772023-01-181-19/+35
|/
* TAS: Show all script lengths for multiplayerMonsterDruide12023-01-072-4/+10
|
* bootmanager: Use proper camera sizegerman772022-12-181-0/+1
|
* Merge pull request #9456 from german77/virtual_gamepadbunnei2022-12-182-0/+151
|\ | | | | input_common: Add virtual gamepad
| * input_common: Add virtual gamepadgerman772022-12-172-0/+151
| |
* | camera: Use pre-allocated vector for camera dataameerj2022-12-172-2/+4
|/ | | | And avoid an unnecessary copy
* input_common: Filter SDL GUIDNarr the Reg2022-12-121-0/+2
|
* Merge pull request #9369 from german77/mifareliamwhite2022-12-062-16/+29
|\ | | | | service: nfc: Implement mifare service
| * input_common: Allow mifare filesNarr the Reg2022-12-052-16/+29
| |
* | Merge pull request #9289 from liamwhite/fruit-companyliamwhite2022-12-034-3/+3
|\ \ | |/ |/| general: fix compile for Apple Clang
| * general: fix compile for Apple ClangLiam2022-11-234-3/+3
| |
* | input_common: Pump sdl events from main threadgerman772022-11-272-10/+8
|/
* general: Address review commentsgerman772022-11-142-2/+2
|
* input_common: Add amiibo applet functionsgerman772022-11-132-0/+18
|
* Merge pull request #9107 from german77/gidoly_rulesliamwhite2022-10-254-11/+67
|\ | | | | input_common: cache vibration tests
| * input_common: cache vibration testsgerman772022-10-214-11/+67
| |
* | general: Enforce C4800 everywhere except in video_coreMorph2022-10-221-2/+2
|/
* common: remove "yuzu:" prefix from thread namesLiam2022-10-043-5/+5
|
* service: nfp: address commentsgerman772022-10-022-3/+3
|
* input_common: Create virtual amiibo drivergerman772022-10-022-0/+162
|
* input_common: sdl: Always check for motion on reconnectNarr the Reg2022-09-041-4/+7
|
* chore: make yuzu REUSE compliantAndrea Pappacoda2022-07-275-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
* input_common: Add camera drivergerman772022-07-242-0/+111
|
* input_common: sdl: lower vibration frequency and use it's own unique threadgerman772022-06-292-1/+10
|
* input_common: Replace usage of string guid to common uuidNarr the Reg2022-06-072-33/+38
|
* Merge pull request #8374 from german77/asnycvibrationsbunnei2022-05-282-2/+33
|\ | | | | input_common: Make vibration request async
| * input_common: Make vibration request asyncNarr the Reg2022-05-232-2/+33
| |
* | input_common: touch: Rewrite touch driver to support multiple touch pointsgerman772022-05-232-31/+110
|/
* Revert "gc_adapter: fix libusb import on GCC11.2"Morph2022-05-021-4/+0
| | | | This reverts commit f72f4377f4cbbe45e5a43bb67c7245737ffa135f.
* gc_adapter: fix libusb import on GCC11.2Levi Behunin2022-05-021-0/+4
| | | | Just to silence an intermittent error. GCC11.2 complains cannot find 'libusb.h' during a fresh build.
* chore: add missing SPDX tagsAndrea Pappacoda2022-04-282-6/+4
| | | | Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
* general: Convert source file copyright comments over to SPDXMorph2022-04-238-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.
* Merge pull request #7978 from german77/sidewaybunnei2022-04-226-0/+71
|\ | | | | input_common: Map sticks correctly when mapped sideways
| * input_common: Map sticks correctly when mapped sidewaysNarr the Reg2022-03-226-0/+71
| |
* | input_common: Replace lock_guard with scoped_lockMerry2022-04-071-6/+6
|/
* input_common: Reduce unused includesameerj2022-03-201-1/+0
|
* Merge pull request #7859 from german77/battery_againbunnei2022-02-243-15/+18
|\ | | | | input_common: Remove battery duplicated struct and update every button press
| * input_common: Remove battery duplicated struct and update every button pressgerman772022-02-073-15/+18
| |
* | Merge pull request #7852 from Morph1984/new-uuidbunnei2022-02-117-11/+11
|\ \ | | | | | | common: Revise and fix the UUID implementation
| * | general: Rename NewUUID to UUID, and remove the previous UUID implMorph2022-02-058-13/+13
| | | | | | | | | | | | This completes the removal of the old UUID implementation.
| * | input/hid: Migrate to the new UUID implementationMorph2022-02-058-17/+17
| |/
* / yuzu: Add auto center on right clickgerman772022-02-071-3/+3
|/
* Merge pull request #7839 from german77/batterybunnei2022-02-051-3/+2
|\ | | | | yuzu: ui: Improve battery symbols
| * yuzu: ui: Improve battery symbolsNarr the Reg2022-02-021-3/+2
| |
* | input_common: Add home and hard touch press buttons to UDP controllersgerman772022-01-302-3/+16
|/
* input_common: Add DS5 to HD rumble listNarr the Reg2022-01-271-2/+3
|
* input_common/udp_client: Replace deprecated from_string()/to_ulong() functionsLioncash2022-01-241-2/+2
| | | | These are deprecated and make_address variants and to_uint() should be used instead.
* input_common/udp_client: Prevent unnecessary string copiesLioncash2022-01-242-4/+4
| | | | | We can also remove some redundant const on the return values, since these don't do anything
* Merge pull request #7735 from german77/udp_batterybunnei2022-01-222-0/+25
|\ | | | | input_common: Report battery for UDP controllers
| * input_common: Report battery for UDP controllersNarr the Reg2022-01-172-0/+25
| |
* | Merge pull request #7715 from gidoly/patch-4bunnei2022-01-191-2/+2
|\ \ | | | | | | Xbox controller default name nit pick
| * | Xbox controller default name nit pickgidoly2022-01-151-2/+2
| |/ | | | | Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
* | Merge pull request #7725 from german77/mouse_in_motionbunnei2022-01-192-1/+34
|\ \ | | | | | | input_common: Reintroduce motion from mouse and use button names
| * | input_common: Reintroduce motion from mouse and use button namesgerman772022-01-172-1/+34
| |/
* / input_common: fix copy-paste errorValeri2022-01-171-1/+1
|/ | | Found by static analysis with PVS-Studio.
* Change default name for ps controllersgidoly2022-01-151-0/+6
| | | | Minor nitpick Code is from narr
* Merge pull request #7633 from german77/hotkeysbunnei2022-01-113-4/+7
|\ | | | | yuzu: Add controller hotkeys
| * yuzu: Add controller hotkeysgerman772022-01-073-4/+7
| |
* | Merge pull request #7687 from german77/tas_handleMorph2022-01-101-7/+24
|\ \ | | | | | | input_common: Handle errors on TAS scripts
| * | input_common: Handle errors on TAS scriptsgerman772022-01-081-7/+24
| |/
* / input_common: Fix udp motion not automapping to both sidesgerman772022-01-071-8/+16
|/
* Merge pull request #7302 from VPeruS/check-deadlockbunnei2021-12-181-35/+39
|\ | | | | [input_common] Fixed thread hang
| * [input_common] Move variable declaration closer to usagevperus2021-12-171-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.
| * Revert of b01aa72vperus2021-11-291-35/+39
| | | | | | | | Caused worker_thread to be stuck in Stage1Completed state until job's destruction.
* | 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.
* | | Merge pull request #7575 from lioncash/inputbunnei2021-12-1414-36/+38
|\ \ \ | | | | | | | | input_engine: Minor object churn cleanup
| * | | 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-134-6/+8
| | | | | | | | | | | | | | | | Avoids creating copies of the struct where not necessary.
| * | | input_engine: std::move engine name where applicableLioncash2021-12-1314-28/+28
| |/ / | | | | | | | | | | | | We can allow the name to be moved into, allowing allocations to be avoided.
* | | tas_input: Avoid minor copies in Read/WriteCommandButtons()Lioncash2021-12-131-2/+2
| | | | | | | | | | | | We don't need to copy the whole pair
* | | tas_input: Remove unnecessary semicolonLioncash2021-12-131-1/+1
| | | | | | | | | | | | Resolves a -Wextra-semi warning
* | | tas_input: Execute clear() even if emptyLioncash2021-12-131-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.
* | | tas_input: Remove unnecessary includesLioncash2021-12-131-2/+2
| | | | | | | | | | | | | | | Gets rid of indirect includes and includes only what the interface needs.
* | | tas_input: std::move strings into vectorLioncash2021-12-131-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.
* | | tas_input: Use istringstream over stringstreamLioncash2021-12-131-2/+2
| | | | | | | | | | | | | | | This is only using the input facilities, so we don't need to use the fully-fleged stringstream.
* | | tas_input: Use u8string_view instead of u8stringLioncash2021-12-132-6/+7
| | | | | | | | | | | | Same behavior, but without the potential for extra allocations.
* | | tas_input: Remove unused std::smatch variableLioncash2021-12-131-2/+0
| | | | | | | | | | | | This also means we can get rid of the dependency on <regex>
* | | tas_input: Amend -Wdocumentation warningsLioncash2021-12-132-28/+30
| | | | | | | | | | | | Parameters shouldn't have the colon by their name.
* | | tas_input: Make TasAxes enum an enum classLioncash2021-12-132-5/+14
|/ / | | | | | | | | Prevents these values from potentially clashing with anything in other headers.
* / input_common: Fix error with thread nameNarr the Reg2021-11-301-2/+1
|/
* input_common: Fully implement UDP controllersNarr the Reg2021-11-262-8/+254
|
* input_common: Move button names to the frontendgerman772021-11-256-33/+35
|
* input_common: Fix SDL controller with inverted axisgerman772021-11-251-23/+0
|
* kraken: Address comments from reviewgerman772021-11-2510-23/+11
| | | | Fix compiler bug
* core/hid: Improve accuary of mouse implementationgerman772021-11-252-8/+14
|
* core/hid: Fully implement native mousegerman772021-11-252-6/+32
|
* input_common: Allow keyboard to be backwards compatiblegerman772021-11-252-14/+52
|
* core/hid: Improve accuracy of the keyboard implementationgerman772021-11-252-4/+56
|
* core/hid: Prevent Emulated controller from flapping with multiple inputs devicesgerman772021-11-252-23/+12
|
* second commit lion reviewgerman772021-11-256-19/+18
|
* settings: Fix Debug controller type optionsgerman772021-11-251-1/+0
|
* kraken: Address comments from reviewgerman772021-11-257-23/+23
| | | | start lion review
* input_common: Revert deleted TAS functionsgerman772021-11-252-18/+19
|
* input_common: Fix GC adapter initializationgerman772021-11-251-12/+12
| | | | Fix GC controller
* input_common: Fix UDP uuidgerman772021-11-252-1/+11
|
* input_common: Add multiple vibration curvesgerman772021-11-251-14/+19
|
* settings: Fix mouse and keyboard mappingsgerman772021-11-252-1/+17
|
* kraken: Address comments from reviewgerman772021-11-252-2/+4
| | | | review fixes
* service/hid: Fix gesture inputgerman772021-11-252-2/+29
|
* core/hid: Fix rumble too strong at 1%german772021-11-251-1/+19
|
* core/hid: Only signal when neededgerman772021-11-255-23/+84
|
* kraken: Fix errors from rebase and format filesgerman772021-11-253-3/+4
|
* core/hid: Add output devicesgerman772021-11-254-6/+14
|
* input_common: Rewrite SDLgerman772021-11-252-0/+1035
|
* input_common: Rewrite udp clientgerman772021-11-252-0/+491
|
* input_common: Rewrite gc_adaptergerman772021-11-254-0/+1131
|
* input_common: Rewrite touchgerman772021-11-252-0/+97
|
* input_common: Rewrite mousegerman772021-11-252-0/+215
|
* input_common: Rewrite keyboardgerman772021-11-252-0/+79