Jan Beich
cfc73b4188
input_common: make libusb private to gc_adapter
2020-07-13 18:48:19 +00:00
bunnei
b84af2cd28
Merge pull request #4266 from jbeich/freebsd
...
gcadapter: unbreak build on FreeBSD
2020-07-08 16:30:26 -04:00
Ameer
6e2876d7da
Address comments for better clarity/signed dev count
2020-07-08 14:18:54 -04:00
Ameer
0e21c24052
Add more libusb error checks
2020-07-08 13:19:33 -04:00
Jan Beich
9ea600e888
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;
~~~~~^
2020-07-07 10:02:03 +00:00
Ameer
e081fb0718
Fix for always firing triggers on some controllers, trigger threshold more universal
2020-07-04 00:40:48 -04:00
Ameer
670614dbf4
Address lioncash feedback: Log formatting, extern const PadButtonArray, little touch ups
2020-07-03 11:52:07 -04:00
Ameer
12e679c39c
Add LR triggers as axes, half press to initiate a press, add GC axis id in config, clarify some code blocks for better readability
2020-07-02 15:54:44 -04:00
Ameer
34e6084c8d
Reset adapter state on init, fixes errors relating driver hang from unexpected unplug
2020-07-01 12:52:50 -04:00
Ameer
0c6128cc3a
Address feedback regarding increments, const vars, and general cleanup
2020-06-30 17:28:02 -04:00
Ameer
ed72085227
fix implicit conversion of size_t type to int
2020-06-30 11:44:55 -04:00
Ameer J
21ae845d69
left const auto&, comment punctuation.
...
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2020-06-26 23:46:49 -04:00
Ameer J
eb06e3e8bf
const& to button in button array
...
Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com>
2020-06-25 19:46:50 -04:00
Ameer
677a07c253
Stop reading loop if error is encountered
2020-06-25 19:31:51 -04:00
Ameer
7c10c568da
padbutton enum class and struct initiailization
2020-06-24 11:39:30 -04:00
Ameer
39ca7c675c
cleanup check access, read, and factory GetNextInput funcs. Use size rather than magic number
2020-06-23 17:37:15 -04:00
Ameer
ef0b52563d
Fix deallocation of GC Adapter
2020-06-23 12:47:58 -04:00
Ameer
f071a70fec
std::array and const reference passing of non-trivial objects
2020-06-22 18:11:59 -04:00
Ameer
5479427335
Tidy up the pointers, use pair over tuple where appropriate
2020-06-21 23:56:56 -04:00
Ameer
a0f8f1dc5e
fix for sleep using stl
2020-06-21 22:58:53 -04:00
Ameer
92a812d815
shared_ptr for the GC adapter class, constexpr constants
2020-06-21 21:50:58 -04:00
Ameer
4a54dc6bbf
std::arrays where appropriate, clear q in adapter class, other touch ups
2020-06-21 21:17:46 -04:00
Ameer
5ebed7b1bb
fix include thread
2020-06-21 21:17:46 -04:00
Ameer
eddf2d0f4e
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
2020-06-21 21:17:07 -04:00
Ameer
77ae7fe5dd
Clang Formatting
2020-06-21 15:31:57 -04:00
Ameer
dbe1ad4fe4
GC Adapter Implementation
2020-06-21 12:36:28 -04:00