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
Ameer
ab65de2f96
Fix crash if gc configured but adapter not connected
6 years ago
Ameer
b284c43385
input_common: drop unused libusb.h include
Remnant of an early implementation.
6 years ago
Jan Beich
883fab2fff
input_common: make libusb private to gc_adapter
6 years ago
Lioncash
8df93132cd
udp: Silence a C++20 deprecation warning
C++20 deprecates using the = lambda capture to implicitly capture the
this pointer. Instead, we must specify it explicitly.
6 years ago
Lioncash
a1dddca4ab
gc_poller: Mark GCButtonFactory::GetNextInput() as const
This doesn't modify class instance state.
6 years ago
Lioncash
839c91cd14
gc_poller: Get rid of undefined behavior in Create()
Ensures that the function always has returns in all control paths.
6 years ago
Lioncash
a8ba6dc3c9
gc_poller: Silence sign conversion warnings
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
Jan Beich
48ff15602e
cmake: pass libusb include directory as well
In file included from src/input_common/gcadapter/gc_adapter.cpp:8:
src/./input_common/gcadapter/gc_adapter.h:11:10: fatal error: 'libusb.h' file not found
#include <libusb.h>
^~~~~~~~~~
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
Jan Beich
1db10b8f4c
input_common/gcadapter: add missing C++11 header required by libc++
In file included from src/input_common/gcadapter/gc_adapter.cpp:8:
src/./input_common/gcadapter/gc_adapter.h:77:10: error: no template named 'unordered_map' in namespace 'std'
std::unordered_map<int, bool> buttons;
~~~~~^
src/./input_common/gcadapter/gc_adapter.h:78:10: error: no template named 'unordered_map' in namespace 'std'
std::unordered_map<int, u16> axes;
~~~~~^
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
6e1639c7b0
Fix unnecessary diffs
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