summaryrefslogtreecommitdiff
path: root/src/input_common/gcadapter/gc_adapter.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-11-24input_common: Rewrite gc_adapterGravatar german771-506/+0
2021-10-23Revert "input_common: Fix data race on GC implementation"Gravatar Fernando S1-101/+88
2021-08-07input_common: Fix data race on GC implementationGravatar Rodrigo Locatti1-88/+101
2021-06-28input_common: Remove #pragma warning directives for external headersGravatar Morph1-7/+0
2021-04-26input_common: Reset GC sticks center by measuring multiple packetsGravatar german771-2/+6
2021-04-14common: Move settings to common from core.Gravatar bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2020-11-15input_common: Add VibrationDevice and VibrationDeviceFactoryGravatar Morph1-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-28Add hotplug, rumble and fix 3rd party adapters for the GC adapterGravatar german1-189/+273
2020-10-15input_common/CMakeLists: Make some warnings errorsGravatar Lioncash1-17/+18
Makes the input_common code warnings consistent with the rest of the codebase.
2020-09-18Add automap feature for GC adapterGravatar german1-0/+88
2020-09-14gc_adapter: Disable MSVC nonstandard extension warning on libusb.hGravatar ReinUsesLisp1-0/+9
Pragma disable zero-sized array nonstandard extension warning on MSVC.
2020-09-07gc_adapter: Make DeviceConnected() a const member functionGravatar Lioncash1-1/+1
This doesn't modify instance state, so it can be made const.
2020-07-26GCAdapter: only join worker thread if running & joinableGravatar Brian J. Tarricone1-1/+3
2020-07-25gc_adapter: Resolve C++20 deprecation warningGravatar Lioncash1-1/+1
2020-07-17std::size_t where appropriate, make error message more clear if can't readGravatar ameerj1-3/+4
2020-07-16Refactor adapter codeGravatar Ameer1-145/+39
2020-07-13input_common: make libusb private to gc_adapterGravatar Jan Beich1-0/+1
2020-07-12gc_adapter: Remove deprecated usage of = in lambda capturesGravatar Lioncash1-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 warningsGravatar Lioncash1-4/+4
2020-07-10Break out of scan loop if can't find adapter on first runGravatar Ameer1-0/+3
2020-07-08Address comments for better clarity/signed dev countGravatar Ameer1-11/+15
2020-07-08Add more libusb error checksGravatar Ameer1-3/+18
2020-07-07Address PR feedback, fix axis button thresholdingGravatar Ameer1-44/+18
2020-07-06Brace the code! Fix compile error due to class member construction orderGravatar Ameer1-12/+27
2020-07-06Recalibrate reconnected controllersGravatar Ameer1-0/+5
2020-07-06Save origin state of GC controller analog features, compare against origin ↵Gravatar Ameer1-18/+54
for input detection
2020-07-04Fix for always firing triggers on some controllers, trigger threshold more ↵Gravatar Ameer1-4/+2
universal
2020-07-03Address lioncash feedback: Log formatting, extern const PadButtonArray, ↵Gravatar Ameer1-14/+26
little touch ups
2020-07-02Add LR triggers as axes, half press to initiate a press, add GC axis id in ↵Gravatar Ameer1-0/+12
config, clarify some code blocks for better readability
2020-07-01Reset adapter state on init, fixes errors relating driver hang from ↵Gravatar Ameer1-0/+8
unexpected unplug
2020-06-30Address feedback regarding increments, const vars, and general cleanupGravatar Ameer1-14/+14
2020-06-30fix implicit conversion of size_t type to intGravatar Ameer1-1/+1
2020-06-26left const auto&, comment punctuation.Gravatar Ameer J1-2/+2
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2020-06-25const& to button in button arrayGravatar Ameer J1-2/+2
Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com>
2020-06-25Stop reading loop if error is encounteredGravatar Ameer1-4/+4
2020-06-24padbutton enum class and struct initiailizationGravatar Ameer1-18/+13
2020-06-23cleanup check access, read, and factory GetNextInput funcs. Use size rather ↵Gravatar Ameer1-93/+76
than magic number
2020-06-23Fix deallocation of GC AdapterGravatar Ameer1-3/+7
2020-06-22std::array and const reference passing of non-trivial objectsGravatar Ameer1-11/+10
2020-06-21fix for sleep using stlGravatar Ameer1-1/+3
2020-06-21shared_ptr for the GC adapter class, constexpr constantsGravatar Ameer1-24/+16
2020-06-21std::arrays where appropriate, clear q in adapter class, other touch upsGravatar Ameer1-7/+9
2020-06-21Singleton GC Adapter class, remove globals, fix naming conventionGravatar Ameer1-89/+87
Fix clang formatting Manual fix for configure_input_player formatting Add missing lib usb cmake command
2020-06-21Clang FormattingGravatar Ameer1-33/+57
2020-06-21GC Adapter ImplementationGravatar Ameer1-0/+350