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
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
ameerj
68d6d3e173
Fix axis thresholding while polling
axes were very sensitive when mapping controls.
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
Jan Beich
883fab2fff
input_common: make libusb private to gc_adapter
6 years ago
Lioncash
9ce6ea648f
gc_adapter: Silence sign conversion warnings
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
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
34a590e509
Reset adapter state on init, fixes errors relating driver hang from unexpected unplug
6 years ago
Ameer
c18dc9c707
padbutton enum class and struct initiailization
6 years ago
Ameer
743e1f02a0
cleanup check access, read, and factory GetNextInput funcs. Use size rather than magic number
6 years ago
Ameer
d4e07fd95e
Fix deallocation of GC Adapter
6 years ago
Ameer
fcc23139f6
std::array and const reference passing of non-trivial objects
6 years ago
Ameer
46b4461fbb
shared_ptr for the GC adapter class, constexpr constants
6 years ago
Ameer
968d631aa5
std::arrays where appropriate, clear q in adapter class, other touch ups
6 years ago
Ameer
5f0fa4cb82
fix include thread
6 years ago
Ameer
121af3646d
Singleton GC Adapter class, remove globals, fix naming convention
Fix clang formatting
Manual fix for configure_input_player formatting
Add missing lib usb cmake command
6 years ago
Ameer
c94583d867
Clang Formatting
6 years ago
Ameer
0248614add
GC Adapter Implementation
6 years ago