summaryrefslogtreecommitdiffstats
path: root/src/input_common/gcadapter (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-02general: Fix various spelling errorsMorph1-3/+3
2020-12-27Allow to invert analog axis with right clickgerman1-7/+21
2020-11-24input_common: Fix typo in gc_poller.cpp with [[maybe_unused]].bunnei1-2/+2
2020-11-24input_common: Add more missing [[maybe_unused]] from #4927.bunnei1-1/+2
2020-11-22input_common: Treat warnings as errorsLioncash1-1/+0
Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
2020-11-19Modify rumble amplificationgerman771-2/+2
2020-11-16input_common: Add VibrationDevice and VibrationDeviceFactoryMorph4-16/+55
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 adaptergerman3-303/+433
2020-10-16input_common/CMakeLists: Make some warnings errorsLioncash3-44/+45
Makes the input_common code warnings consistent with the rest of the codebase.
2020-09-18Add automap feature for GC adaptergerman2-0/+93
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 functionLioncash3-9/+9
This doesn't modify instance state, so it can be made const.
2020-08-26input_common: Fix directional deadzone valuesMorph1-1/+1
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
2020-08-26Project Mjölnir: Part 1Morph1-1/+1
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-26gc_poller: Resolve compilation warnings on MSVCLioncash1-3/+5
We just need to make our intentional implicit truncations explicit.
2020-08-10Remove UI changesameerj1-1/+1
This PR is now only the Analog devices handling the range value defaulting at 100%
2020-08-10Add range slider functionality for gc adapterameerj1-7/+7
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-25gc_poller: Resolve -Wsign-compare warningLioncash1-1/+2
2020-07-25gc_poller: Resolve -Wredundant-move warningLioncash1-2/+1
2020-07-19Fix axis thresholding while pollingameerj1-5/+2
axes were very sensitive when mapping controls.
2020-07-17std::size_t where appropriate, make error message more clear if can't readameerj1-3/+4
2020-07-16Refactor adapter codeAmeer2-179/+44
2020-07-14Fix crash if gc configured but adapter not connectedAmeer2-15/+25
2020-07-13input_common: make libusb private to gc_adapterJan Beich2-1/+5
2020-07-12gc_poller: Mark GCButtonFactory::GetNextInput() as constLioncash2-2/+2
This doesn't modify class instance state.
2020-07-12gc_poller: Get rid of undefined behavior in Create()Lioncash1-0/+4
Ensures that the function always has returns in all control paths.
2020-07-12gc_poller: Silence sign conversion warningsLioncash1-1/+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 warningsLioncash2-7/+7
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 thresholdingAmeer3-58/+22
2020-07-07input_common/gcadapter: add missing C++11 header required by libc++Jan Beich1-0/+1
In file included from src/input_common/gcadapter/gc_adapter.cpp:8: src/./input_common/gcadapter/gc_adapter.h:77:10: error: no template named 'unordered_map' in namespace 'std' std::unordered_map<int, bool> buttons; ~~~~~^ src/./input_common/gcadapter/gc_adapter.h:78:10: error: no template named 'unordered_map' in namespace 'std' std::unordered_map<int, u16> axes; ~~~~~^
2020-07-07Brace the code! Fix compile error due to class member construction orderAmeer2-15/+31
2020-07-07Recalibrate reconnected controllersAmeer1-0/+5
2020-07-07Save origin state of GC controller analog features, compare against origin for input detectionAmeer3-28/+72
2020-07-04Fix for always firing triggers on some controllers, trigger threshold more universalAmeer2-5/+5
2020-07-03Address lioncash feedback: Log formatting, extern const PadButtonArray, little touch upsAmeer3-24/+32
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 readabilityAmeer2-10/+34
2020-07-01Reset adapter state on init, fixes errors relating driver hang from unexpected unplugAmeer2-0/+9
2020-06-30Address feedback regarding increments, const vars, and general cleanupAmeer2-24/+21
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 initiailizationAmeer3-36/+32
2020-06-23cleanup check access, read, and factory GetNextInput funcs. Use size rather than magic numberAmeer3-150/+101
2020-06-23Fix deallocation of GC AdapterAmeer2-4/+7
2020-06-23std::array and const reference passing of non-trivial objectsAmeer2-14/+13
2020-06-22Tidy up the pointers, use pair over tuple where appropriateAmeer2-21/+21
2020-06-22fix for sleep using stlAmeer1-1/+3
2020-06-22shared_ptr for the GC adapter class, constexpr constantsAmeer4-64/+48
2020-06-22std::arrays where appropriate, clear q in adapter class, other touch upsAmeer4-26/+15
2020-06-22fix include threadAmeer1-0/+1
2020-06-22Singleton GC Adapter class, remove globals, fix naming conventionAmeer4-197/+252
Fix clang formatting Manual fix for configure_input_player formatting Add missing lib usb cmake command
2020-06-21Clang FormattingAmeer4-71/+96
2020-06-21GC Adapter ImplementationAmeer4-0/+835