summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers/udp_client.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-12core: hid: Split SL and SR buttonsgerman771-3/+5
2023-10-15input_common: udp: Avoid crash when trying to map motion before client is readygerman771-0/+1
2023-02-14remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades791-1/+1
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation where possiblearades791-1/+1
Signed-off-by: arades79 <scravers@protonmail.com>
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda1-3/+2
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-03-22input_common: Map sticks correctly when mapped sidewaysNarr the Reg1-0/+16
2022-02-07input_common: Remove battery duplicated struct and update every button pressgerman771-7/+7
2022-02-05general: Rename NewUUID to UUID, and remove the previous UUID implMorph1-2/+2
This completes the removal of the old UUID implementation.
2022-02-05input/hid: Migrate to the new UUID implementationMorph1-4/+4
2022-01-30input_common: Add home and hard touch press buttons to UDP controllersgerman771-2/+13
2022-01-24input_common/udp_client: Replace deprecated from_string()/to_ulong() functionsLioncash1-2/+2
These are deprecated and make_address variants and to_uint() should be used instead.
2022-01-24input_common/udp_client: Prevent unnecessary string copiesLioncash1-2/+2
We can also remove some redundant const on the return values, since these don't do anything
2022-01-17input_common: Report battery for UDP controllersNarr the Reg1-0/+21
2022-01-07input_common: Fix udp motion not automapping to both sidesgerman771-8/+16
2021-12-17[input_common] Move variable declaration closer to usagevperus1-2/+2
MSVC supplied with VS2022 generates "warning C4189: 'CALIBRATION_THRESHOLD': local variable is initialized but not referenced" which is treated as an error. Circumvent it by moving constexpr variable directly into body of lambda function.
2021-12-13input_engine: std::move engine name where applicableLioncash1-1/+1
We can allow the name to be moved into, allowing allocations to be avoided.
2021-11-29Revert of b01aa72vperus1-35/+39
Caused worker_thread to be stuck in Stage1Completed state until job's destruction.
2021-11-26input_common: Fully implement UDP controllersNarr the Reg1-8/+198
2021-11-25input_common: Fix UDP uuidgerman771-1/+9
2021-11-25kraken: Address comments from reviewgerman771-0/+2
review fixes
2021-11-25service/hid: Fix gesture inputgerman771-0/+27
2021-11-25input_common: Rewrite udp clientgerman771-202/+40
2021-11-25input_common: Move touch and analog from button. Move udp protocolgerman771-1/+1
2021-10-20input_common: Fix VS2022 compilation errorsameerj1-39/+35
2021-06-28general: Make most settings a BasicSettinglat9nq1-2/+2
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.
2021-05-13input_common: Sanitize motion datagerman771-0/+23
2021-04-15common: Move settings to common from core.bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2021-03-31Use a single connection for UDP server, make connection test longer and check all pads instead of only the first onegerman771-75/+72
2021-03-01inputCommon: Use an unique client id for each socket instancegerman1-10/+16
2021-02-09udp/client: Define ClientData constructor/destructor in cpp fileLioncash1-0/+4
Prevents compilation errors on clang 12 due to incomplete types within a unique_ptr member.
2021-01-15Always initialize keyboard inputgerman1-10/+8
2021-01-15Add mutitouch support for touch screensgerman1-11/+8
2021-01-15Allow to return up to 16 touch inputs per enginegerman1-43/+78
2020-12-27udp client: process packets only for the correct padgal201-0/+5
2020-11-26Add multiple udp server supportgerman1-49/+94
2020-11-24input_common: Add more missing [[maybe_unused]] from #4927.bunnei1-2/+2
2020-11-22input_common: Treat warnings as errorsLioncash1-3/+3
Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
2020-11-16udp/client: Reduce testing period to 5 secondsMorph1-1/+1
2020-10-16udp/client: Make use of designated initializers in TestCommunication()Lioncash1-2/+5
Same behavior, but makes the callback list nicer to look at.
2020-10-16udp/client: Take std::function by const reference with TestCommunication()Lioncash1-3/+3
Avoids redundant copies.
2020-10-16input_common/CMakeLists: Make some warnings errorsLioncash1-29/+36
Makes the input_common code warnings consistent with the rest of the codebase.
2020-09-30Reduce the "shake" requirements when configuring UDP.Lukas Senionis1-2/+6
2020-09-26Add random motion input to SDLgerman1-5/+3
2020-09-05Minor cleanupgerman1-19/+16
2020-09-05Add cemu hook changes related to PR #4609german1-38/+149
2020-09-05Remove RealMotionDevicegerman1-1/+9
2020-08-13General: Tidy up clang-format warnings part 2Lioncash1-4/+2
2020-07-25udp/client: Remove unused boost includeLioncash1-1/+0
Also silences a deprecation warning from boost on Clang/GCC.
2020-07-12udp: Silence a C++20 deprecation warningLioncash1-1/+1
C++20 deprecates using the = lambda capture to implicitly capture the this pointer. Instead, we must specify it explicitly.
2020-06-22Singleton GC Adapter class, remove globals, fix naming conventionAmeer1-2/+4
Fix clang formatting Manual fix for configure_input_player formatting Add missing lib usb cmake command
2020-06-21Clang FormattingAmeer1-4/+2
2020-06-21Cleanup after linterAmeer1-77/+63
2020-06-21GC Adapter ImplementationAmeer1-63/+77
2020-03-17input_common/udp: Fix Linux build by using a backwards compatible way of error checkingFearlessTobi1-1/+1
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-04input/udp - Add minor error handling to prevent bad input from crashingJames Rowe1-4/+13
2020-02-03input_common/udp: std::move SocketCallback instances where applicableLioncash1-2/+2
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 constructorLioncash1-1/+1
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()Lioncash1-2/+2
Future-proofs code if boost is ever updated.
2020-02-03input_common/udp: Silence -Wreorder warning for SocketLioncash1-4/+3
Amends the constructor initializer list to specify the order of its elements in the same order that initialization would occur.
2020-01-23Address second part of review commentsFearlessTobi1-5/+9
2020-01-23Address review commentsFearlessTobi1-12/+12
2020-01-23Input: UDP Client to provide motion and touch controlsfearlessTobi1-0/+283
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>