summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers/gc_adapter.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-02-14remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades791-4/+4
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation where possiblearades791-4/+4
Signed-off-by: arades79 <scravers@protonmail.com>
2023-01-25input_common: Make use of StoppableTimedWaitMorph1-2/+2
2023-01-20input_common: Use DriverResult on all enginesgerman771-3/+3
2022-10-21input_common: cache vibration testsgerman771-1/+5
2022-10-04common: remove "yuzu:" prefix from thread namesLiam1-2/+2
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 Pappacoda1-3/+2
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
2022-03-22input_common: Map sticks correctly when mapped sidewaysNarr the Reg1-0/+16
2022-02-05general: Rename NewUUID to UUID, and remove the previous UUID implMorph1-1/+1
This completes the removal of the old UUID implementation.
2022-02-05input/hid: Migrate to the new UUID implementationMorph1-1/+1
2021-12-13input_engine: Pass VibrationStatus by const reference in SetRumble()Lioncash1-2/+2
Avoids creating copies of the struct where not necessary.
2021-12-13input_engine: std::move engine name where applicableLioncash1-1/+1
We can allow the name to be moved into, allowing allocations to be avoided.
2021-11-25input_common: Move button names to the frontendgerman771-18/+18
2021-11-25kraken: Address comments from reviewgerman771-14/+2
Fix compiler bug
2021-11-25kraken: Address comments from reviewgerman771-5/+5
start lion review
2021-11-25input_common: Fix GC adapter initializationgerman771-12/+12
Fix GC controller
2021-11-25service/hid: Fix gesture inputgerman771-2/+2
2021-11-25core/hid: Only signal when neededgerman771-12/+63
2021-11-25kraken: Fix errors from rebase and format filesgerman771-1/+2
2021-11-25core/hid: Add output devicesgerman771-2/+6
2021-11-25input_common: Rewrite gc_adaptergerman771-221/+198
2021-10-23Revert "input_common: Fix data race on GC implementation"Fernando S1-101/+88
2021-08-07input_common: Fix data race on GC implementationRodrigo Locatti1-88/+101
2021-06-28input_common: Remove #pragma warning directives for external headersMorph1-7/+0
2021-04-27input_common: Reset GC sticks center by measuring multiple packetsgerman771-2/+6
2021-04-15common: Move settings to common from core.bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2020-11-16input_common: Add VibrationDevice and VibrationDeviceFactoryMorph1-4/+2
A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
2020-10-29Add hotplug, rumble and fix 3rd party adapters for the GC adaptergerman1-189/+273
2020-10-16input_common/CMakeLists: Make some warnings errorsLioncash1-17/+18
Makes the input_common code warnings consistent with the rest of the codebase.
2020-09-18Add automap feature for GC adaptergerman1-0/+88
2020-09-15gc_adapter: Disable MSVC nonstandard extension warning on libusb.hReinUsesLisp1-0/+9
Pragma disable zero-sized array nonstandard extension warning on MSVC.
2020-09-07gc_adapter: Make DeviceConnected() a const member functionLioncash1-1/+1
This doesn't modify instance state, so it can be made const.
2020-07-26GCAdapter: only join worker thread if running & joinableBrian J. Tarricone1-1/+3
2020-07-25gc_adapter: Resolve C++20 deprecation warningLioncash1-1/+1
2020-07-17std::size_t where appropriate, make error message more clear if can't readameerj1-3/+4
2020-07-16Refactor adapter codeAmeer1-145/+39
2020-07-13input_common: make libusb private to gc_adapterJan Beich1-0/+1
2020-07-12gc_adapter: Remove deprecated usage of = in lambda capturesLioncash1-1/+1
It's deprecated in C++20 to use = to capture the this pointer. Instead, we can simply pass this as an argument to the thread constructor.
2020-07-12gc_adapter: Silence sign conversion warningsLioncash1-4/+4
2020-07-10Break out of scan loop if can't find adapter on first runAmeer1-0/+3
2020-07-08Address comments for better clarity/signed dev countAmeer1-11/+15
2020-07-08Add more libusb error checksAmeer1-3/+18
2020-07-07Address PR feedback, fix axis button thresholdingAmeer1-44/+18
2020-07-07Brace the code! Fix compile error due to class member construction orderAmeer1-12/+27
2020-07-07Recalibrate reconnected controllersAmeer1-0/+5
2020-07-07Save origin state of GC controller analog features, compare against origin for input detectionAmeer1-18/+54
2020-07-04Fix for always firing triggers on some controllers, trigger threshold more universalAmeer1-4/+2
2020-07-03Address lioncash feedback: Log formatting, extern const PadButtonArray, little touch upsAmeer1-14/+26
2020-07-02Add LR triggers as axes, half press to initiate a press, add GC axis id in config, clarify some code blocks for better readabilityAmeer1-0/+12
2020-07-01Reset adapter state on init, fixes errors relating driver hang from unexpected unplugAmeer1-0/+8
2020-06-30Address feedback regarding increments, const vars, and general cleanupAmeer1-14/+14
2020-06-30fix implicit conversion of size_t type to intAmeer1-1/+1
2020-06-27left const auto&, comment punctuation.Ameer J1-2/+2
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2020-06-26const& to button in button arrayAmeer J1-2/+2
Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com>
2020-06-26Stop reading loop if error is encounteredAmeer1-4/+4
2020-06-24padbutton enum class and struct initiailizationAmeer1-18/+13
2020-06-23cleanup check access, read, and factory GetNextInput funcs. Use size rather than magic numberAmeer1-93/+76
2020-06-23Fix deallocation of GC AdapterAmeer1-3/+7
2020-06-23std::array and const reference passing of non-trivial objectsAmeer1-11/+10
2020-06-22fix for sleep using stlAmeer1-1/+3
2020-06-22shared_ptr for the GC adapter class, constexpr constantsAmeer1-24/+16
2020-06-22std::arrays where appropriate, clear q in adapter class, other touch upsAmeer1-7/+9
2020-06-22Singleton GC Adapter class, remove globals, fix naming conventionAmeer1-89/+87
Fix clang formatting Manual fix for configure_input_player formatting Add missing lib usb cmake command
2020-06-21Clang FormattingAmeer1-33/+57
2020-06-21GC Adapter ImplementationAmeer1-0/+350