diff options
| author | 2019-08-24 15:57:49 +0200 | |
|---|---|---|
| committer | 2020-01-23 20:55:26 +0100 | |
| commit | ac3690f2057fb93ce18f156ff5ffd720a6d6f60c (patch) | |
| tree | d0ec80a2537b992146d34f5bf17ba0cc549bd88e /src/input_common/udp/udp.h | |
| parent | Merge pull request #3341 from bunnei/time-posix-myrule (diff) | |
| download | yuzu-ac3690f2057fb93ce18f156ff5ffd720a6d6f60c.tar.gz yuzu-ac3690f2057fb93ce18f156ff5ffd720a6d6f60c.tar.xz yuzu-ac3690f2057fb93ce18f156ff5ffd720a6d6f60c.zip | |
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>
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/udp/udp.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/input_common/udp/udp.h b/src/input_common/udp/udp.h new file mode 100644 index 000000000..ea3de60bb --- /dev/null +++ b/src/input_common/udp/udp.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | // Copyright 2018 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include <memory> | ||
| 6 | #include <unordered_map> | ||
| 7 | #include "input_common/main.h" | ||
| 8 | #include "input_common/udp/client.h" | ||
| 9 | |||
| 10 | namespace InputCommon::CemuhookUDP { | ||
| 11 | |||
| 12 | class UDPTouchDevice; | ||
| 13 | class UDPMotionDevice; | ||
| 14 | |||
| 15 | class State { | ||
| 16 | public: | ||
| 17 | State(); | ||
| 18 | ~State(); | ||
| 19 | void ReloadUDPClient(); | ||
| 20 | |||
| 21 | private: | ||
| 22 | std::unique_ptr<Client> client; | ||
| 23 | }; | ||
| 24 | |||
| 25 | std::unique_ptr<State> Init(); | ||
| 26 | |||
| 27 | } // namespace InputCommon::CemuhookUDP | ||