Morph
7b3f5845d2
sdl_impl: Erase the SDLJoystick entry after removing a controller
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.
5 years ago
Lioncash
046c0c91a3
input_common/CMakeLists: Make some warnings errors
Makes the input_common code warnings consistent with the rest of the
codebase.
5 years ago
german
a54aee290f
Address comments
5 years ago
german
a220d8799e
Add compatibility with only accelerometer and auto calibrate for drift
5 years ago
Lukas Senionis
6ee1a784b8
Reduce the "shake" requirements when configuring UDP.
5 years ago
german
ab88c2f611
First implementation of controller rumble
6 years ago
german
2978232390
Add random motion input to keyboard
5 years ago
german
03b574ae22
Add random motion input to SDL
5 years ago
german
c5e257017f
Add automap feature for GC adapter
5 years ago
ReinUsesLisp
bc8ace9917
gc_adapter: Disable MSVC nonstandard extension warning on libusb.h
Pragma disable zero-sized array nonstandard extension warning on MSVC.
5 years ago
Lioncash
c715fc4c5e
gc_adapter: Make DeviceConnected() a const member function
This doesn't modify instance state, so it can be made const.
5 years ago
german
797564599f
Minor cleanup
5 years ago
german
6ee8eab670
Add cemu hook changes related to PR #4609
5 years ago
german
0774b17846
Remove RealMotionDevice
5 years ago
german
ff679f3d17
Include HID and configuration changes related to motion
5 years ago
Morph
45ecd601be
input_common/motion_input: Make use of Common::PI constant
Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
5 years ago
Vitor Kiguchi
e6f9fe1f60
sdl_joystick: disable the use of the hidapi drivers due to many problems caused by them.
The main problem is the loss of compatibility with some controllers, but there are also
unwanted changes to the behaviour of PS4 controllers (hardcoded lightbar color).
6 years ago
FearlessTobi
d1e1ea0fef
Address second batch of reviews
5 years ago
FearlessTobi
d176feffad
Address review comments and fix code compilation
5 years ago
FearlessTobi
e6bd1fd1b8
yuzu: Add motion and touch configuration
6 years ago
Lioncash
69fa6b4906
sdl_impl: Reduce allocations in GetButtonMappingForDevice()
These maps can be constexpr arrays of std::pair.
5 years ago
Lioncash
f2a680ca89
sdl_impl: Make use of std::move on std::string where applicable
Avoids redundant copies.
5 years ago
Lioncash
e92164e6a0
sdl_impl: Make use of insert_or_assign() where applicable
Avoids churning ParamPackage instances.
5 years ago
Lioncash
f3ac088345
sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() default arguments
We need to add the 'f' suffix to make the right hand side a float and
not a double.
5 years ago
Lioncash
2e2dde2f95
sdl_impl: Simplify make_tuple call
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.
5 years ago
Lioncash
2680526e6b
sdl_impl: Mark FromEvent() as a const member function
This doesn't modify internal member state, so it can be marked as const.
5 years ago
Lioncash
98f5d8a713
input_common/main: Remove unnecessary headers
5 years ago
Lioncash
4b9b203c09
input_common/main: Remove unimplemented prototype
I forgot to remove this in the rebase when removing most of the global
variables within the input common codebase.
5 years ago
german
1be18dc110
Fix orientation errors and improve drift correction
5 years ago
german
e6fc3b5662
Address comments
5 years ago
german
2d207ec609
Implement a basic class for motion devices
5 years ago
Lioncash
9e1b0af259
input_common: Eliminate most global state
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.
5 years ago
Morph
8ffc491546
input_common/main: Add "/Mouse" to the display name
5 years ago
Morph
de79897f04
input_common: Fix directional deadzone values
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
5 years ago
Morph
efa0b7a056
Address feedback
5 years ago
Morph
f0fac0c7fb
Project Mjölnir: Part 1
Co-authored-by: James Rowe <jroweboy@gmail.com>
Co-authored-by: Its-Rei <kupfel@gmail.com>
6 years ago
Lioncash
f60d5aac3e
gc_poller: Resolve compilation warnings on MSVC
We just need to make our intentional implicit truncations explicit.
5 years ago
Lioncash
b724a4d90c
General: Tidy up clang-format warnings part 2
5 years ago
ameerj
d6672501ac
Remove UI changes
This PR is now only the Analog devices handling the range value defaulting at 100%
5 years ago
ameerj
9c6ae697f5
Add range slider functionality for gc adapter
6 years ago
Ameer
8928aa3008
undo unnecessary newlines, slider range 50-150
6 years ago
Ameer
ed51c2abda
Add range slider for analog sticks
6 years ago
Brian J. Tarricone
d840ed90e1
GCAdapter: only join worker thread if running & joinable
6 years ago
Lioncash
1a7cf26884
udp/client: Remove unused boost include
Also silences a deprecation warning from boost on Clang/GCC.
6 years ago
Lioncash
ac7e4e2cab
gc_adapter: Resolve C++20 deprecation warning
6 years ago
Lioncash
04699c366b
gc_poller: Resolve -Wsign-compare warning
6 years ago
Lioncash
e19972dfc4
gc_poller: Resolve -Wredundant-move warning
6 years ago
ameerj
68d6d3e173
Fix axis thresholding while polling
axes were very sensitive when mapping controls.
6 years ago
ameerj
1e7bed0a45
std::size_t where appropriate, make error message more clear if can't read
6 years ago
Ameer
94f5f29573
Refactor adapter code
6 years ago