summaryrefslogtreecommitdiff
path: root/src/input_common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gc_adapter: Disable MSVC nonstandard extension warning on libusb.hGravatar ReinUsesLisp2020-09-141-0/+9
| | | | Pragma disable zero-sized array nonstandard extension warning on MSVC.
* gc_adapter: Make DeviceConnected() a const member functionGravatar Lioncash2020-09-073-9/+9
| | | | This doesn't modify instance state, so it can be made const.
* Merge pull request #4583 from lioncash/truncGravatar bunnei2020-09-031-3/+5
|\ | | | | gc_poller: Resolve compilation warnings on MSVC
| * gc_poller: Resolve compilation warnings on MSVCGravatar Lioncash2020-08-251-3/+5
| | | | | | | | We just need to make our intentional implicit truncations explicit.
* | input_common/motion_input: Make use of Common::PI constantGravatar Morph2020-09-022-4/+9
| | | | | | | | Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
* | Merge pull request #4570 from german77/motionInputGravatar bunnei2020-09-023-0/+246
|\ \ | | | | | | input_common: Add a basic class for motion devices
| * | Fix orientation errors and improve drift correctionGravatar german2020-08-272-14/+31
| | |
| * | Address commentsGravatar german2020-08-272-85/+65
| | |
| * | Implement a basic class for motion devicesGravatar german2020-08-273-0/+249
| | |
* | | Merge pull request #4382 from FearlessTobi/port-udp-configGravatar bunnei2020-09-015-0/+89
|\ \ \ | | | | | | | | yuzu: Add motion and touch configuration from Citra
| * | | Address second batch of reviewsGravatar FearlessTobi2020-08-303-6/+2
| | | |
| * | | Address review comments and fix code compilationGravatar FearlessTobi2020-08-293-6/+11
| | | |
| * | | yuzu: Add motion and touch configurationGravatar FearlessTobi2020-08-295-0/+88
| | | |
* | | | sdl_impl: Reduce allocations in GetButtonMappingForDevice()Gravatar Lioncash2020-08-281-31/+37
| | | | | | | | | | | | | | | | These maps can be constexpr arrays of std::pair.
* | | | sdl_impl: Make use of std::move on std::string where applicableGravatar Lioncash2020-08-281-3/+3
| | | | | | | | | | | | | | | | Avoids redundant copies.
* | | | sdl_impl: Make use of insert_or_assign() where applicableGravatar Lioncash2020-08-281-14/+18
| | | | | | | | | | | | | | | | Avoids churning ParamPackage instances.
* | | | sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() ↵Gravatar Lioncash2020-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | default arguments We need to add the 'f' suffix to make the right hand side a float and not a double.
* | | | sdl_impl: Simplify make_tuple callGravatar Lioncash2020-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | sdl_impl: Mark FromEvent() as a const member functionGravatar Lioncash2020-08-281-2/+2
|/ / / | | | | | | | | | This doesn't modify internal member state, so it can be marked as const.
* | | input_common/main: Remove unnecessary headersGravatar Lioncash2020-08-283-5/+11
| | |
* | | input_common/main: Remove unimplemented prototypeGravatar Lioncash2020-08-281-3/+0
| | | | | | | | | | | | | | | I forgot to remove this in the rebase when removing most of the global variables within the input common codebase.
* | | input_common: Eliminate most global stateGravatar Lioncash2020-08-272-153/+227
|/ / | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | input_common/main: Add "/Mouse" to the display nameGravatar Morph2020-08-261-1/+1
| |
* | input_common: Fix directional deadzone valuesGravatar Morph2020-08-262-2/+2
| | | | | | | | The hardware tested value is 0.5 which translates to SHRT_MAX / 2
* | Address feedbackGravatar Morph2020-08-265-44/+32
| |
* | Project Mjölnir: Part 1Gravatar Morph2020-08-2611-102/+798
|/ | | | | Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
* General: Tidy up clang-format warnings part 2Gravatar Lioncash2020-08-131-4/+2
|
* Remove UI changesGravatar ameerj2020-08-102-2/+2
| | | | This PR is now only the Analog devices handling the range value defaulting at 100%
* Add range slider functionality for gc adapterGravatar ameerj2020-08-101-7/+7
|
* undo unnecessary newlines, slider range 50-150Gravatar Ameer2020-08-101-1/+1
|
* Add range slider for analog sticksGravatar Ameer2020-08-101-11/+14
|
* GCAdapter: only join worker thread if running & joinableGravatar Brian J. Tarricone2020-07-261-1/+3
|
* Merge pull request #4418 from lioncash/udp-warnGravatar bunnei2020-07-251-1/+0
|\ | | | | udp/client: Remove unused boost include
| * udp/client: Remove unused boost includeGravatar Lioncash2020-07-251-1/+0
| | | | | | | | Also silences a deprecation warning from boost on Clang/GCC.
* | gc_adapter: Resolve C++20 deprecation warningGravatar Lioncash2020-07-251-1/+1
| |
* | gc_poller: Resolve -Wsign-compare warningGravatar Lioncash2020-07-251-1/+2
| |
* | gc_poller: Resolve -Wredundant-move warningGravatar Lioncash2020-07-251-2/+1
|/
* Fix axis thresholding while pollingGravatar ameerj2020-07-191-5/+2
| | | | axes were very sensitive when mapping controls.
* std::size_t where appropriate, make error message more clear if can't readGravatar ameerj2020-07-171-3/+4
|
* Refactor adapter codeGravatar Ameer2020-07-162-179/+44
|
* Rebase to masterGravatar Ameer2020-07-147-31/+48
|\
| * Fix crash if gc configured but adapter not connectedGravatar Ameer2020-07-142-15/+25
| |
| * Merge pull request #4314 from lioncash/input-warnGravatar bunnei2020-07-144-11/+15
| |\ | | | | | | gcadapter: Tidy up compiler warnings
| | * gc_poller: Mark GCButtonFactory::GetNextInput() as constGravatar Lioncash2020-07-122-2/+2
| | | | | | | | | | | | This doesn't modify class instance state.
| | * gc_poller: Get rid of undefined behavior in Create()Gravatar Lioncash2020-07-121-0/+4
| | | | | | | | | | | | Ensures that the function always has returns in all control paths.
| | * gc_poller: Silence sign conversion warningsGravatar Lioncash2020-07-121-1/+1
| | |
| | * gc_adapter: Remove deprecated usage of = in lambda capturesGravatar Lioncash2020-07-121-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.
| | * gc_adapter: Silence sign conversion warningsGravatar Lioncash2020-07-122-7/+7
| | |
| * | Merge pull request #4315 from lioncash/udp-warnGravatar bunnei2020-07-141-1/+1
| |\ \ | | | | | | | | udp: Silence a C++20 deprecation warning
| | * | udp: Silence a C++20 deprecation warningGravatar Lioncash2020-07-121-1/+1
| | |/ | | | | | | | | | | | | C++20 deprecates using the = lambda capture to implicitly capture the this pointer. Instead, we must specify it explicitly.