summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
2020-10-21sdl_impl: Fix controller reconnection issuesMorph
It turns out that after a controller is disconnected, there is a chance that events from the previous controller are sent/processed after it has been disconnected. This causes the previously disconnected controller to reappear as connected due to GetSDLJoystickBySDLID() emplacing this controller back to the map. Fix this by only returning an SDLJoystick if and only if it exists in the map.
2020-10-20Merge pull request #4809 from Morph1984/mjolnir-p3LC
configure_input_player: Fix modifier buttons
2020-10-20Merge pull request #4627 from Morph1984/fix-dinput-controller-disconnectbunnei
sdl_impl: Erase the SDLJoystick entry after removing a controller
2020-10-20configure_input_player: Fix modifier buttonsMorph
Fix them for real this time, now they finally work.
2020-10-16udp/client: Make use of designated initializers in TestCommunication()Lioncash
Same behavior, but makes the callback list nicer to look at.
2020-10-16udp/client: Take std::function by const reference with TestCommunication()Lioncash
Avoids redundant copies.
2020-10-16sdl_impl: Erase the SDLJoystick entry after removing a controllerMorph
Previously, disconnecting a controller still leaves a null SDLJoystick entry within the vector of SDLJoysticks mapped by GUID. When a DirectInput device of the same GUID is reconnected, it adds that device to a new port causing non-detectable input. Furthermore, opening the "Configure" menu would cause yuzu to crash since it first tries to resolve the name of a null SDLJoystick entry that was not removed. Resolve this by properly erasing the SDLJoystick entry from the vector.
2020-10-15input_common/CMakeLists: Make some warnings errorsLioncash
Makes the input_common code warnings consistent with the rest of the codebase.
2020-10-09Merge pull request #4757 from german77/BetterMotionbunnei
InputCommon: Add compatibility with only accelerometer and auto calibrate for drift
2020-10-08Merge pull request #4677 from german77/ShakeFromButtonbunnei
InputCommon: Add random motion input for buttons
2020-10-06Merge pull request #4727 from FrogTheFrog/patch-1bunnei
Reduce the "shake" requirements when configuring UDP.
2020-10-04Address commentsgerman
2020-10-03Add compatibility with only accelerometer and auto calibrate for driftgerman
2020-09-30Reduce the "shake" requirements when configuring UDP.Lukas Senionis
2020-09-29First implementation of controller rumblegerman
2020-09-25Add random motion input to keyboardgerman
2020-09-25Add random motion input to SDLgerman
2020-09-18Add automap feature for GC adaptergerman
2020-09-17Merge pull request #4594 from german77/MotionHIDbunnei
hid/configuration: Implement motion controls to HID
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-05Minor cleanupgerman
2020-09-04Add cemu hook changes related to PR #4609german
2020-09-04Remove RealMotionDevicegerman
2020-09-04Include HID and configuration changes related to motiongerman
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