Levi Behunin
f72f4377f4
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
01cf05bc75
chore: add missing SPDX tags
Follow-up to 99ceb03a1c
4 years ago
Narr the Reg
ee532e5c01
input_common: Map sticks correctly when mapped sideways
4 years ago
Morph
25db62ce15
general: Rename NewUUID to UUID, and remove the previous UUID impl
This completes the removal of the old UUID implementation.
4 years ago
Morph
cb30fe50cd
input/hid: Migrate to the new UUID implementation
4 years ago
Lioncash
38f3442ea5
input_engine: Pass VibrationStatus by const reference in SetRumble()
Avoids creating copies of the struct where not necessary.
4 years ago
Lioncash
2b92d22bda
input_engine: std::move engine name where applicable
We can allow the name to be moved into, allowing allocations to be
avoided.
4 years ago
german77
746c85b560
input_common: Move button names to the frontend
4 years ago
german77
42949738f2
kraken: Address comments from review
Fix compiler bug
4 years ago
german77
2b1b0c2a30
kraken: Address comments from review
start lion review
4 years ago
german77
d8e3f2b10b
input_common: Fix GC adapter initialization
Fix GC controller
4 years ago
german77
85052b8662
service/hid: Fix gesture input
4 years ago
german77
601ac43495
core/hid: Only signal when needed
4 years ago
german77
e0da5c1bbc
kraken: Fix errors from rebase and format files
4 years ago
german77
06a5ef5874
core/hid: Add output devices
4 years ago
german77
395e9a449d
input_common: Rewrite gc_adapter
4 years ago
Fernando S
33e92c15eb
Revert "input_common: Fix data race on GC implementation"
4 years ago
Rodrigo Locatti
d4cab35533
input_common: Fix data race on GC implementation
5 years ago
Morph
954259312e
input_common: Remove #pragma warning directives for external headers
5 years ago
german77
729545a946
input_common: Reset GC sticks center by measuring multiple packets
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
Morph
e9e1876e82
input_common: Add VibrationDevice and VibrationDeviceFactory
A vibration device is an input device that returns an unsigned byte as status.
It represents whether the vibration device supports vibration or not.
If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
5 years ago
german
5333db91c1
Add hotplug, rumble and fix 3rd party adapters for the GC adapter
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
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
Brian J. Tarricone
d840ed90e1
GCAdapter: only join worker thread if running & joinable
5 years ago
Lioncash
ac7e4e2cab
gc_adapter: Resolve C++20 deprecation warning
5 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
Jan Beich
883fab2fff
input_common: make libusb private to gc_adapter
6 years ago
Lioncash
32b6fc4062
gc_adapter: Remove deprecated usage of = in lambda captures
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.
6 years ago
Lioncash
9ce6ea648f
gc_adapter: Silence sign conversion warnings
6 years ago
Ameer
042c6602a0
Break out of scan loop if can't find adapter on first run
6 years ago
Ameer
3c7a115afe
Address comments for better clarity/signed dev count
6 years ago
Ameer
ec13746e4d
Add more libusb error checks
6 years ago
Ameer
b57475887b
Address PR feedback, fix axis button thresholding
6 years ago
Ameer
e3253b5f18
Brace the code! Fix compile error due to class member construction order
6 years ago
Ameer
86abff48e1
Recalibrate reconnected controllers
6 years ago
Ameer
7ad423923d
Save origin state of GC controller analog features, compare against origin for input detection
6 years ago
Ameer
d00972fce1
Fix for always firing triggers on some controllers, trigger threshold more universal
6 years ago
Ameer
e69d715e3d
Address lioncash feedback: Log formatting, extern const PadButtonArray, little touch ups
6 years ago
Ameer
6b7c8e469b
Add LR triggers as axes, half press to initiate a press, add GC axis id in config, clarify some code blocks for better readability
6 years ago
Ameer
34a590e509
Reset adapter state on init, fixes errors relating driver hang from unexpected unplug
6 years ago
Ameer
a76e11e7f0
Address feedback regarding increments, const vars, and general cleanup
6 years ago
Ameer
dfdf87d844
fix implicit conversion of size_t type to int
6 years ago
Ameer J
bd697bef03
left const auto&, comment punctuation.
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
6 years ago
Ameer J
ecbc813711
const& to button in button array
Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com>
6 years ago
Ameer
3f739514e3
Stop reading loop if error is encountered
6 years ago