ameerj
b01aa721ff
input_common: Fix VS2022 compilation errors
4 years ago
lat9nq
b91b76df4f
general: Make most settings a BasicSetting
Creates a new BasicSettings class in common/settings, and forces setting
a default and label for each setting that uses it in common/settings.
Moves defaults and labels from both frontends into common settings.
Creates a helper function in each frontend to facillitate reading the
settings now with the new default and label properties.
Settings::Setting is also now a subclass of Settings::BasicSetting. Also
adds documentation for both Setting and BasicSetting.
5 years ago
german77
fd7c273fab
input_common: Sanitize motion data
5 years ago
bunnei
a4c6712a4b
common: Move settings to common from core.
- Removes a dependency on core and input_common from common.
5 years ago
german77
bb3dce9363
Use a single connection for UDP server, make connection test longer and check all pads instead of only the first one
5 years ago
german
9b3af0027b
inputCommon: Use an unique client id for each socket instance
5 years ago
Lioncash
cda24b8eb1
udp/client: Define ClientData constructor/destructor in cpp file
Prevents compilation errors on clang 12 due to incomplete types within a
unique_ptr member.
5 years ago
german
b483f2d010
Always initialize keyboard input
5 years ago
german
8495e1bd83
Add mutitouch support for touch screens
5 years ago
german
d8df9a16bd
Allow to return up to 16 touch inputs per engine
5 years ago
gal20
1defd0847a
udp client: process packets only for the correct pad
5 years ago
german
2c2b586d86
Add multiple udp server support
5 years ago
bunnei
7fb7540d69
input_common: Add more missing [[maybe_unused]] from #4927 .
5 years ago
Lioncash
5c4774e8ce
input_common: Treat warnings as errors
Migrates over warnings as errors for input common to match how the
common library treats warnings as errors.
5 years ago
Morph
8ead176639
udp/client: Reduce testing period to 5 seconds
5 years ago
Lioncash
30b1e71066
udp/client: Make use of designated initializers in TestCommunication()
Same behavior, but makes the callback list nicer to look at.
5 years ago
Lioncash
36cfb234d5
udp/client: Take std::function by const reference with TestCommunication()
Avoids redundant copies.
5 years ago
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
Lukas Senionis
6ee1a784b8
Reduce the "shake" requirements when configuring UDP.
5 years ago
german
03b574ae22
Add random motion input to SDL
5 years ago
german
797564599f
Minor cleanup
5 years ago
german
6ee8eab670
Add cemu hook changes related to PR #4609
5 years ago
german
0774b17846
Remove RealMotionDevice
5 years ago
Lioncash
b724a4d90c
General: Tidy up clang-format warnings part 2
5 years ago
Lioncash
1a7cf26884
udp/client: Remove unused boost include
Also silences a deprecation warning from boost on Clang/GCC.
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
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
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
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
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