aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/gcadapter
AgeCommit message (Collapse)Author
2021-11-24input_common: Rewrite gc_adaptergerman77
2021-10-23Revert "input_common: Fix data race on GC implementation"Fernando S
2021-08-07input_common: Fix data race on GC implementationRodrigo Locatti
2021-06-28input_common: Remove #pragma warning directives for external headersMorph
2021-04-26input_common: Reset GC sticks center by measuring multiple packetsgerman77
2021-04-14common: Move settings to common from core.bunnei
- Removes a dependency on core and input_common from common.
2021-02-06Make settings controller image change with controller inputgerman
2021-01-02general: Fix various spelling errorsMorph
2020-12-26Allow to invert analog axis with right clickgerman
2020-11-23input_common: Fix typo in gc_poller.cpp with [[maybe_unused]].bunnei
2020-11-23input_common: Add more missing [[maybe_unused]] from #4927.bunnei
2020-11-22input_common: Treat warnings as errorsLioncash
Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
2020-11-19Modify rumble amplificationgerman77
2020-11-15input_common: Add VibrationDevice and VibrationDeviceFactoryMorph
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 adaptergerman
2020-10-15input_common/CMakeLists: Make some warnings errorsLioncash
Makes the input_common code warnings consistent with the rest of the codebase.
2020-09-18Add automap feature for GC adaptergerman
2020-09-14gc_adapter: Disable MSVC nonstandard extension warning on libusb.hReinUsesLisp
Pragma disable zero-sized array nonstandard extension warning on MSVC.
2020-09-07gc_adapter: Make DeviceConnected() a const member functionLioncash
This doesn't modify instance state, so it can be made const.
2020-09-03Merge pull request #4583 from lioncash/truncbunnei
gc_poller: Resolve compilation warnings on MSVC
2020-08-26input_common: Fix directional deadzone valuesMorph
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
2020-08-26Project Mjölnir: Part 1Morph
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-25gc_poller: Resolve compilation warnings on MSVCLioncash
We just need to make our intentional implicit truncations explicit.
2020-08-10Remove UI changesameerj
This PR is now only the Analog devices handling the range value defaulting at 100%
2020-08-10Add range slider functionality for gc adapterameerj
2020-07-26GCAdapter: only join worker thread if running & joinableBrian J. Tarricone
2020-07-25gc_adapter: Resolve C++20 deprecation warningLioncash
2020-07-25gc_poller: Resolve -Wsign-compare warningLioncash
2020-07-25gc_poller: Resolve -Wredundant-move warningLioncash
2020-07-19Fix axis thresholding while pollingameerj
axes were very sensitive when mapping controls.
2020-07-17std::size_t where appropriate, make error message more clear if can't readameerj
2020-07-16Refactor adapter codeAmeer
2020-07-14Rebase to masterAmeer
2020-07-14Fix crash if gc configured but adapter not connectedAmeer
2020-07-14Merge pull request #4314 from lioncash/input-warnbunnei
gcadapter: Tidy up compiler warnings
2020-07-13input_common: make libusb private to gc_adapterJan Beich
2020-07-12gc_poller: Mark GCButtonFactory::GetNextInput() as constLioncash
This doesn't modify class instance state.
2020-07-12gc_poller: Get rid of undefined behavior in Create()Lioncash
Ensures that the function always has returns in all control paths.
2020-07-12gc_poller: Silence sign conversion warningsLioncash
2020-07-12gc_adapter: Remove deprecated usage of = in lambda capturesLioncash
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 warningsLioncash
2020-07-10Break out of scan loop if can't find adapter on first runAmeer
2020-07-08Rebase to master, fix merge conflictsAmeer
2020-07-08Merge pull request #4266 from jbeich/freebsdbunnei
gcadapter: unbreak build on FreeBSD
2020-07-08Address comments for better clarity/signed dev countAmeer
2020-07-08Add more libusb error checksAmeer
2020-07-07Address PR feedback, fix axis button thresholdingAmeer
2020-07-07input_common/gcadapter: add missing C++11 header required by libc++Jan Beich
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-06Brace the code! Fix compile error due to class member construction orderAmeer
2020-07-06Recalibrate reconnected controllersAmeer