Commit Graph

292 Commits (eaafd53cfedf0c7ae40a3f790af5f0aec63ebd13)

Author SHA1 Message Date
bunnei dff438e219
Merge pull request #6654 from german77/custom_threshold
input_common: Make button threshold customizable
5 years ago
bunnei 29fb110049
Merge pull request #6649 from german77/toggle_sdl
input_common: Support SDL toggle buttons
5 years ago
Nicolas Jallamion 6573ff64b4
input/sdl_impl: fix rumble support on DualSense. (#6683)
- value return can be different 0, is not error is normal, error is only -1.
5 years ago
bunnei ffc78ce9c1
Merge pull request #6652 from lat9nq/cmd-vulkan-fixes
yuzu-cmd: Linux Vulkan fixes
5 years ago
german77 14d5202da6 input_common: Fix mouse panning behaivour 5 years ago
lat9nq f785933125 sdl_impl, emu_window: Remove clang ignore
Fixed upstream by
libsdl-org/SDL@25fc40b0bd
5 years ago
german77 240019feca input_common: Make button threshold customizable 5 years ago
bunnei 3cd3230295
Merge pull request #6579 from ameerj/float-settings
settings: Eliminate usage of float-point setting values
5 years ago
german77 c7478642a6 input_common: Support SDL toggle buttons 5 years ago
german77 289f59dabd input_common: Fix build with sdl disabled 5 years ago
ameerj 0ed1077763 configure_input: Use u8 for mouse sensitivity 5 years ago
Ameer J 5edc96f4a4
Merge pull request #6539 from lat9nq/default-setting
general: Move most settings' defaults and labels into their definition
5 years ago
lat9nq a949ee0410 general: Code formatting improvements
Slight improvements to readability.

Dropped suggestions for string_view (settings.h:101), pass by value
(settings.h:82), reverting double to a float (config.cpp:316), and other
smaller ones, some out of scope.

Addresses review feedback.

Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
5 years ago
Morph ebb82b0b83 CMakeLists: Treat -Wsign-compare as an error on GCC/Clang
Treats (un)signed comparison mismatches as errors to be consistent with MSVC
5 years ago
bunnei bf50345d4c
Merge pull request #6537 from Morph1984/warnings
general: Enforce multiple warnings in MSVC
5 years ago
german77 c19ec2edd9 input_common: Add missing modifier callback to analog from button 5 years ago
lat9nq 0e5c74bc9e core, input_common: Miscellaneous fixes
bcat: Fix settings access

telemetry_session: Fix settings accesses

So this is what I get for testing with the web service disabled.

touch_from_button: Fix settings access for clang
5 years ago
lat9nq b91b76df4f general: Make most settings a BasicSetting
Creates a new BasicSettings class in common/settings, and forces setting
a default and label for each setting that uses it in common/settings.
Moves defaults and labels from both frontends into common settings.
Creates a helper function in each frontend to facillitate reading the
settings now with the new default and label properties.

Settings::Setting is also now a subclass of Settings::BasicSetting. Also
adds documentation for both Setting and BasicSetting.
5 years ago
Morph 954259312e input_common: Remove #pragma warning directives for external headers 5 years ago
Morph 58550cfcdc input_common: Enforce C4242 5 years ago
Chloe f216a9432b
Add missing includes (#6521)
* Add missing includes

* Add array
5 years ago
Rodrigo Locatti 0a39163a90 input_common/mouse_input: Fix data race
Fix data race using std::jthread and std::stop_token.
5 years ago
bunnei c1b8e59ea0
Merge pull request #6407 from lat9nq/fix-libusb-2
cmake: Use autotools for libusb linking generally on GNU, and cleanup
5 years ago
bunnei 1d1f616063
Merge pull request #6389 from german77/Analog_button_fix
input_common: Analog button, use time based position
5 years ago
lat9nq ddc47e6df8 cmake: General improvements to libusb linking
Delegates libusb external communication to externals/CMakeLists.txt
Ensures an interface library `usb` for every pathway
input_common just links to the `usb` library now
externals/libusb/CMakeLists.txt sets variables to override SDL2's libusb
finding
Other minor cleanup
5 years ago
bunnei 348ca07e0d
Merge pull request #6318 from german77/dualJoycon
input_common: Add dual joycon support
5 years ago
german77 a323bc5af8 input_common: Analog button, use time based position instead of frequent updates 5 years ago
bunnei aee3b57c44
Merge pull request #6312 from german77/analogMapping
input_common: Rewrite sdl analog mapping and fix controller disconnection crash
5 years ago
german77 ea4b7226a6 input_common: Add dual joycon support 5 years ago
bunnei 41b1f8d616
Merge pull request #6310 from german77/nanMotion
input_common: Sanitize motion data
5 years ago
german77 f20f4587e6 input_common: Implement SDL motion 5 years ago
german77 edd498f6e0 input_common: Fix crash when controller disconnects 5 years ago
german77 85eeae7aad input_common: Rewrite sdl analog mapping 5 years ago
german77 fd7c273fab input_common: Sanitize motion data 5 years ago
german77 6e81473574 input_common: Release mouse buttons on out of focus 5 years ago
bunnei aab57b7975
Merge pull request #6243 from german77/GCresetOrigin
input_common: Reset GC sticks center by measuring multiple packets
5 years ago
german77 729545a946 input_common: Reset GC sticks center by measuring multiple packets 5 years ago
german77 c19ad21ae8 hid: Implement SevenSixAxis and ConsoleSixAxisSensor 5 years ago
lat9nq f973274b99 general: Ignore implicit-fallthrough for SDL.h
SDL 2.0.14 introduces an incompatibility with Clang, causing it to
trigger -Wimplicit-fallthrough even though it is marked. Ignore it for
now, with a comment mentioning why this is needed.
5 years ago
lat9nq de69a5266f cmake: Use SDL 2.0.14 and fix CMake scope issue
Forces using SDL 2.0.14. Upgrades the SDL external to that version. Adds
a message when switching to the external.

Fixes an error where input_common only links to SDL when SDL2_FOUND is
set, but externals/CMakeLists cannot set that variable to the required
scope. Switch to using ENABLE_SDL2, which we can use since we now
include the SDL source.
5 years ago
bunnei 0a5bc8ec14
Merge pull request #6119 from german77/SDLMapping
InputCommon: Address mapping and naming issues with SDL2
5 years ago
bunnei a4c6712a4b common: Move settings to common from core.
- Removes a dependency on core and input_common from common.
5 years ago
german77 bb3dce9363 Use a single connection for UDP server, make connection test longer and check all pads instead of only the first one 5 years ago
german77 d9db1d125e InputCommon: Name properly xbox 360 and one controllers, Fix mappings for Nintendo Pro controllers 5 years ago
bunnei 827dcad26e
Merge pull request #6040 from german77/toggleKeyboard
Enable toggle buttons for keyboard and mouse
5 years ago
bunnei 9c4c9f1e7d
Merge pull request #5990 from german77/mousePanningV2
InputCommon: Mouse fixes
5 years ago
german77 41e94b7b99 Enable mouse toggle buttons 5 years ago
german 1f228c51ca Enable button toggle for keyboard in the modifier button 5 years ago
german 9b3af0027b inputCommon: Use an unique client id for each socket instance 5 years ago
german77 4738e14cb0 inputCommon: Mouse fixes 5 years ago