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
Ameer
3f739514e3
Stop reading loop if error is encountered
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
ameerj
f5d2a1e8bd
Update src/input_common/main.cpp
Co-authored-by: LC <mathew1800@gmail.com>
update libusb submodule (hopefully windows build error fixed)
6 years ago
Ameer
28046ae3a9
Tidy up the pointers, use pair over tuple where appropriate
6 years ago
Ameer
0f729ef078
fix for sleep using stl
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
0076a08d04
Cleanup after linter
6 years ago
Ameer
0248614add
GC Adapter Implementation
6 years ago
MerryMage
c6a963c48e
input_common/motion_emu: Remove redundant move
Named return value optimization automatically applies here.
6 years ago
MerryMage
8272f53cf9
input_common/keyboard: Remove redundant move
Named return value optimization automatically applies here.
6 years ago
FearlessTobi
3d1e741645
input_common: fix build when SDL2 is disabled
6 years ago
Markus Wick
94c2c828a5
input_common: Use the CMake target instead of the variable.
6 years ago
Lioncash
1c340c6efa
CMakeLists: Specify -Wextra on linux builds
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.
6 years ago
ReinUsesLisp
716d6aee30
input_common/udp: Fix clang build issues
6 years ago
FearlessTobi
230ac6a4e8
input_common/udp: Fix Linux build by using a backwards compatible way of 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.
6 years ago
James Rowe
002d9508a0
input/udp - Add minor error handling to prevent bad input from crashing
6 years ago
James Rowe
2cdda8c564
input/udp - Dont log on invalid packet received
6 years ago
CJBok
23c4cc80e2
analog_from_button get direction implementation
6 years ago
Lioncash
c7678c3044
input_common/udp: Ensure that UDP is shut down within Shutdown()
Previously the UDP backend would never actually get shut down.
6 years ago
Lioncash
83f8090273
input_common/udp: Add missing override specifiers
Prevents trivial warnings and ensures interfaces are properly
maintained between the base class.
6 years ago
Lioncash
5c61e0ba39
input_common/udp: std::move SocketCallback instances where applicable
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.
6 years ago
Lioncash
fb9c9ddcc9
input_common/udp: std::move shared_ptr within Client constructor
Gets rid of a trivially avoidable atomic reference count increment and
decrement.
6 years ago
Lioncash
9bb6ab77f4
udp/client: Replace deprecated from_string() call with make_address_v4()
Future-proofs code if boost is ever updated.
6 years ago
Lioncash
881408445a
input_common/udp: Silence -Wreorder warning for Socket
Amends the constructor initializer list to specify the order of its
elements in the same order that initialization would occur.
6 years ago
Lioncash
36524465a6
input_common/udp: Remove unnecessary inclusions
6 years ago
Lioncash
4aa9c9632d
input_common/udp: Add missing header guard
6 years ago
FearlessTobi
bbd85a495a
Address second part of review comments
6 years ago
FearlessTobi
0fe11746fc
Address review comments
6 years ago
fearlessTobi
ac3690f205
Input: UDP Client to provide motion and touch controls
An implementation of the cemuhook motion/touch protocol, this adds the
ability for users to connect several different devices to citra to send
direct motion and touch data to citra.
Co-Authored-By: jroweboy <jroweboy@gmail.com>
6 years ago
CJBok
635deb70d4
Moved analog direction logic to sdl_impl
6 years ago
Lioncash
5ccf2a7b82
input_common/sdl/sdl_impl: Correct logging string in SDLState constructor
If this path was ever taken, a runtime exception would occur due to the
lack of a formatting specifier to insert the error code into the format
string.
7 years ago
Lioncash
cfac942e63
input_common/sdl/sdl_impl: Move documentation comments to header where applicable
Places the documentation comments with the rest of SDLState's member
function documentation.
7 years ago
Lioncash
b9b23c98ff
input_common/sdl/sdl_impl: Amend names for axes for SDLAnalogPoller
Adds another underscore to clearly indicate the axis names.
7 years ago
Lioncash
50048d9f5a
input_common/sdl/sdl_impl: Mark variables const where applicable
Make it explicit that these aren't modified elsewhere (either through
functions by reference, or by other operations).
7 years ago
Lioncash
ca7ca2919c
input_common/sdl/sdl_impl: Mark SDLEventToButtonParamPackage() as static
Its prototype declared at the top of the translation unit contains the
static qualifier, so the function itself should also contain it to make
it a proper internally linked function.
7 years ago