FearlessTobi
846c50dd42
Address first part of review comments
4 years ago
german77
76b18ad549
input_common: Add camera driver
4 years ago
german77
93cbaeb605
input_common: sdl: lower vibration frequency and use it's own unique thread
4 years ago
Morph
e647661b76
CMakeLists: Make variable shadowing a compile-time error
Now that the entire project is free of variable shadowing, we can enforce this as a compile time error to prevent any further introduction of this logic bug.
4 years ago
Narr the Reg
d061038994
input_common: Replace usage of string guid to common uuid
4 years ago
Narr the Reg
3cd7b067e0
input_common: Make vibration request async
4 years ago
german77
b6d3a7d8cf
input_common: touch: Rewrite touch driver to support multiple touch points
4 years ago
Morph
5ec38a7cb9
Revert "gc_adapter: fix libusb import on GCC11.2"
This reverts commit 6e1eea8897 .
4 years ago
Levi Behunin
6e1eea8897
gc_adapter: fix libusb import on GCC11.2
Just to silence an intermittent error.
GCC11.2 complains cannot find 'libusb.h' during a fresh build.
4 years ago
Andrea Pappacoda
b2eb103829
chore: add missing SPDX tags
Follow-up to 2b87305d31
4 years ago
Narr the Reg
d0bdbb9afb
yuzu: config: Set default range to 95%
4 years ago
Morph
2b87305d31
general: Convert source file copyright comments over to SPDX
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
4 years ago
Narr the Reg
bd648a74df
input_common: Ignore boost uninitialized local variable
4 years ago
Merry
b02d74d113
input_common: Replace lock_guard with scoped_lock
4 years ago
Narr the Reg
f27e097244
input_common: Map sticks correctly when mapped sideways
4 years ago
ameerj
e7bb6ec32e
input_common: Reduce unused includes
4 years ago
german77
2ea4a2b74e
yuzu: Add auto center on right click
4 years ago
german77
75d96d5462
input_common: Remove battery duplicated struct and update every button press
4 years ago
Morph
e47b5e6a26
general: Rename NewUUID to UUID, and remove the previous UUID impl
This completes the removal of the old UUID implementation.
4 years ago
Morph
51c445f7e8
input/hid: Migrate to the new UUID implementation
4 years ago
Morph
3d13bb3105
input_common: Remove unused core include
4 years ago
Narr the Reg
2198237e42
yuzu: ui: Improve battery symbols
4 years ago
german77
e19f0654f9
input_common: Use attributes for analog range modifiers
4 years ago
german77
a2fe5dffa9
input_common: Add home and hard touch press buttons to UDP controllers
4 years ago
Narr the Reg
9ea465d958
input_common: Add DS5 to HD rumble list
4 years ago
Lioncash
18c2bd5c12
input_common/input_engine: Ensure PadIdentifier UUIDs have a valid initial state
The default constructor of a UUID instance doesn't initialize the
underlying array.
4 years ago
Lioncash
f02a9e4d81
input_common/input_mapping: Simplify UUID validity checks
Makes the checks a little more intuitive to read and doesn't construct
an extra UUID instance
4 years ago
Lioncash
04a33bc652
input_common/input_mapping: Add missing includes
Ensures that the class always sees the types it needs.
4 years ago
Lioncash
cec9e4ec77
input_common/input_mapping: Remove const from return value
Top-level const on a return by value can inhibit move semantics, and is
unnecessary.
4 years ago
Lioncash
5f80c764b0
input_common/input_mapping: Default constructor
4 years ago
Lioncash
1bd76dcb77
input_common/main: Pass MappingData by const reference in callbacks
Avoids creating unnecessary 168 byte copies per callback invocation.
4 years ago
Lioncash
feb5b56356
input_common/udp_client: Replace deprecated from_string()/to_ulong() functions
These are deprecated and make_address variants and to_uint() should be used instead.
4 years ago
Lioncash
de967b3967
input_common/udp_client: Prevent unnecessary string copies
We can also remove some redundant const on the return values, since
these don't do anything
4 years ago
german77
1fca7203d3
input_common: Add option to configure gyro threshold
4 years ago
Narr the Reg
527a74f48b
input_common: Report battery for UDP controllers
4 years ago
Valeri
ffc1f4df39
input_common: nitpick about SetHatButton usage
4 years ago
Valeri
e3ee079aa4
input_common: fix copy-paste error
Found by static analysis with PVS-Studio.
4 years ago
german77
991460cd98
input_common: Reintroduce motion from mouse and use button names
4 years ago
gidoly
3465aa5d57
Xbox controller default name nit pick
Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
4 years ago
gidoly
ede1976820
Change default name for ps controllers
Minor nitpick
Code is from narr
4 years ago
german77
b6c23d1633
input_common: Handle errors on TAS scripts
4 years ago
german77
0e1d2581b7
input_common: Fix udp motion not automapping to both sides
4 years ago
german77
353317f31e
yuzu: Add controller hotkeys
4 years ago
german77
10439bbfff
input_common: Use accelerometer data for mapping
4 years ago
vperus
e1250d7303
[input_common] Move variable declaration closer to usage
MSVC supplied with VS2022 generates "warning C4189: 'CALIBRATION_THRESHOLD':
local variable is initialized but not referenced" which is treated as an
error.
Circumvent it by moving constexpr variable directly into body of lambda function.
4 years ago
Valeri
af37388ee5
input/SDL: Update SDL hints
SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED is no longer needed thanks to new default in SDL 2.0.18.
SDL_HINT_JOYSTICK_HIDAPI_XBOX is reported to cause conflicts with native driver Xbox driver on Linux, and Xbox controllers don't benefit from hidapi anyways.
4 years ago
Lioncash
726de453bb
common/input: Avoid numerous large copies of CallbackStatus
CallbackStatus instances aren't the cheapest things to copy around
(relative to everything else), given that they're currently 520 bytes in
size and are currently copied numerous times when callbacks are invoked.
Instead, we can pass the status by const reference to avoid all the
copying.
4 years ago
Lioncash
3dbb700714
input_poller: Add missing override specifiers
4 years ago
Lioncash
46c7e48143
input_mapping: Amend specification of parameters
param tags are supposed to specify the parameter name without any
quoting.
Silences several -Wdocumentation warnings.
4 years ago
Lioncash
c73ebb7d89
input_poller: Remove several unnecessary @param tags
Silences quite a bit of -Wdocumentation warnings, given the @param tag
is only intended to be used to identify function parameters, not what it
contains.
4 years ago