summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
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-09-02input_common/motion_input: Make use of Common::PI constantMorph
Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
2020-09-02Merge pull request #4570 from german77/motionInputbunnei
input_common: Add a basic class for motion devices
2020-09-01Merge pull request #4382 from FearlessTobi/port-udp-configbunnei
yuzu: Add motion and touch configuration from Citra
2020-08-30Address second batch of reviewsFearlessTobi
2020-08-29Address review comments and fix code compilationFearlessTobi
2020-08-29yuzu: Add motion and touch configurationFearlessTobi
2020-08-28sdl_impl: Reduce allocations in GetButtonMappingForDevice()Lioncash
These maps can be constexpr arrays of std::pair.
2020-08-28sdl_impl: Make use of std::move on std::string where applicableLioncash
Avoids redundant copies.
2020-08-28sdl_impl: Make use of insert_or_assign() where applicableLioncash
Avoids churning ParamPackage instances.
2020-08-28sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() ↵Lioncash
default arguments We need to add the 'f' suffix to make the right hand side a float and not a double.
2020-08-28sdl_impl: Simplify make_tuple callLioncash
The purpose of make_tuple is that you don't need to explicitly type out the types of the things that comprise said tuple. Given this just returns default values, we can simplify this a bit.
2020-08-28sdl_impl: Mark FromEvent() as a const member functionLioncash
This doesn't modify internal member state, so it can be marked as const.
2020-08-28input_common/main: Remove unnecessary headersLioncash
2020-08-28input_common/main: Remove unimplemented prototypeLioncash
I forgot to remove this in the rebase when removing most of the global variables within the input common codebase.
2020-08-27Fix orientation errors and improve drift correctiongerman
2020-08-27Address commentsgerman
2020-08-27Implement a basic class for motion devicesgerman
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-25gc_poller: Resolve compilation warnings on MSVCLioncash
We just need to make our intentional implicit truncations explicit.
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.