summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
2020-08-27input_common: Eliminate most global stateLioncash
Abstracts most of the input mechanisms under an InputSubsystem class that is managed by the frontends, eliminating any static constructors and destructors. This gets rid of global accessor functions and also allows the frontends to have a more fine-grained control over the lifecycle of the input subsystem. This also makes it explicit which interfaces rely on the input subsystem instead of making it opaque in the interface functions. All that remains to migrate over is the factories, which can be done in a separate change.
2020-08-26input_common/main: Add "/Mouse" to the display nameMorph
2020-08-26input_common: Fix directional deadzone valuesMorph
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
2020-08-26Address feedbackMorph
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-13General: Tidy up clang-format warnings part 2Lioncash
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-08-10undo unnecessary newlines, slider range 50-150Ameer
2020-08-10Add range slider for analog sticksAmeer
2020-07-26GCAdapter: only join worker thread if running & joinableBrian J. Tarricone
2020-07-25Merge pull request #4418 from lioncash/udp-warnbunnei
udp/client: Remove unused boost include
2020-07-25udp/client: Remove unused boost includeLioncash
Also silences a deprecation warning from boost on Clang/GCC.
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-14Merge pull request #4315 from lioncash/udp-warnbunnei
udp: Silence a C++20 deprecation warning
2020-07-14input_common: drop unused libusb.h includeAmeer
Remnant of an early implementation.
2020-07-13input_common: make libusb private to gc_adapterJan Beich
2020-07-12udp: Silence a C++20 deprecation warningLioncash
C++20 deprecates using the = lambda capture to implicitly capture the this pointer. Instead, we must specify it explicitly.
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-09cmake: pass libusb include directory as wellJan Beich
In file included from src/input_common/gcadapter/gc_adapter.cpp:8: src/./input_common/gcadapter/gc_adapter.h:11:10: fatal error: 'libusb.h' file not found #include <libusb.h> ^~~~~~~~~~
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
2020-07-06Save origin state of GC controller analog features, compare against origin ↵Ameer
for input detection
2020-07-04Fix for always firing triggers on some controllers, trigger threshold more ↵Ameer
universal
2020-07-03Address lioncash feedback: Log formatting, extern const PadButtonArray, ↵Ameer
little touch ups
2020-07-02Fix unnecessary diffsAmeer
2020-07-02Add LR triggers as axes, half press to initiate a press, add GC axis id in ↵Ameer
config, clarify some code blocks for better readability
2020-07-01Reset adapter state on init, fixes errors relating driver hang from ↵Ameer
unexpected unplug
2020-06-30Address feedback regarding increments, const vars, and general cleanupAmeer
2020-06-30fix implicit conversion of size_t type to intAmeer
2020-06-26left const auto&, comment punctuation.Ameer J
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>