summaryrefslogtreecommitdiff
path: root/src/input_common
AgeCommit message (Collapse)Author
2020-07-08Merge pull request #4266 from jbeich/freebsdbunnei
gcadapter: unbreak build on FreeBSD
2020-07-08Address comments for better clarity/signed dev countAmeer
2020-07-08Add more libusb error checksAmeer
2020-07-07input_common/gcadapter: add missing C++11 header required by libc++Jan Beich
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-04Fix for always firing triggers on some controllers, trigger threshold more ↵Ameer
universal
2020-07-03Address lioncash feedback: Log formatting, extern const PadButtonArray, ↵Ameer
little touch ups
2020-07-02Fix unnecessary diffsAmeer
2020-07-02Add LR triggers as axes, half press to initiate a press, add GC axis id in ↵Ameer
config, clarify some code blocks for better readability
2020-07-01Reset adapter state on init, fixes errors relating driver hang from ↵Ameer
unexpected unplug
2020-06-30Address feedback regarding increments, const vars, and general cleanupAmeer
2020-06-30fix implicit conversion of size_t type to intAmeer
2020-06-26left const auto&, comment punctuation.Ameer J
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2020-06-25const& to button in button arrayAmeer J
Co-authored-by: VolcaEM <63682805+VolcaEM@users.noreply.github.com>
2020-06-25Stop reading loop if error is encounteredAmeer
2020-06-24padbutton enum class and struct initiailizationAmeer
2020-06-23cleanup check access, read, and factory GetNextInput funcs. Use size rather ↵Ameer
than magic number
2020-06-23Fix deallocation of GC AdapterAmeer
2020-06-22std::array and const reference passing of non-trivial objectsAmeer
2020-06-22Update src/input_common/main.cppameerj
Co-authored-by: LC <mathew1800@gmail.com> update libusb submodule (hopefully windows build error fixed)
2020-06-21Tidy up the pointers, use pair over tuple where appropriateAmeer
2020-06-21fix for sleep using stlAmeer
2020-06-21shared_ptr for the GC adapter class, constexpr constantsAmeer
2020-06-21std::arrays where appropriate, clear q in adapter class, other touch upsAmeer
2020-06-21fix include threadAmeer
2020-06-21Singleton GC Adapter class, remove globals, fix naming conventionAmeer
Fix clang formatting Manual fix for configure_input_player formatting Add missing lib usb cmake command
2020-06-21Clang FormattingAmeer
2020-06-21Cleanup after linterAmeer
2020-06-21GC Adapter ImplementationAmeer
2020-06-19input_common/motion_emu: Remove redundant moveMerryMage
Named return value optimization automatically applies here.
2020-06-19input_common/keyboard: Remove redundant moveMerryMage
Named return value optimization automatically applies here.
2020-05-02input_common: fix build when SDL2 is disabledFearlessTobi
2020-04-16Merge pull request #3673 from lioncash/extrabunnei
CMakeLists: Specify -Wextra on linux builds
2020-04-16input_common: Use the CMake target instead of the variable.Markus Wick
2020-04-15CMakeLists: Specify -Wextra on linux buildsLioncash
Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
2020-03-21Merge pull request #3525 from FearlessTobi/linux-compile-errorbunnei
input_common/udp: Fix Linux build by using a backwards compatible way of error checking
2020-03-18input_common/udp: Fix clang build issuesReinUsesLisp
2020-03-17input_common/udp: Fix Linux build by using a backwards compatible way of ↵FearlessTobi
error checking Should fix https://github.com/yuzu-emu/yuzu/issues/3487. error_code::failed is a function which has been introduced in Boost 1.69. This version of boost hasn't landed in most major distros yet.
2020-03-03input/udp - Add minor error handling to prevent bad input from crashingJames Rowe
2020-03-03input/udp - Dont log on invalid packet receivedJames Rowe
2020-02-18analog_from_button get direction implementationCJBok
2020-02-03input_common/udp: Ensure that UDP is shut down within Shutdown()Lioncash
Previously the UDP backend would never actually get shut down.
2020-02-03input_common/udp: Add missing override specifiersLioncash
Prevents trivial warnings and ensures interfaces are properly maintained between the base class.
2020-02-03input_common/udp: std::move SocketCallback instances where applicableLioncash
std::function is allowed to heap allocate if the size of the captures associated with each lambda exceed a certain threshold. This prevents potentially unnecessary reallocations from occurring.
2020-02-03input_common/udp: std::move shared_ptr within Client constructorLioncash
Gets rid of a trivially avoidable atomic reference count increment and decrement.
2020-02-03udp/client: Replace deprecated from_string() call with make_address_v4()Lioncash
Future-proofs code if boost is ever updated.
2020-02-03input_common/udp: Silence -Wreorder warning for SocketLioncash
Amends the constructor initializer list to specify the order of its elements in the same order that initialization would occur.
2020-02-03input_common/udp: Remove unnecessary inclusionsLioncash
2020-02-03input_common/udp: Add missing header guardLioncash
2020-02-01Merge pull request #3284 from CJBok/hid-fixbunnei
hid: Fix analog sticks directional states
2020-01-23Address second part of review commentsFearlessTobi