diff options
author | german <german@thesoftwareartisans.com> | 2021-01-03 05:04:50 +0100 |
---|---|---|
committer | german <german@thesoftwareartisans.com> | 2021-01-15 16:05:17 +0100 |
commit | 8495e1bd8373fed993975e40c360c87409455e9e (patch) | |
tree | fffff1304673212280dc0e927b69efa3ca4fc8b3 /src/input_common/udp/client.h | |
parent | Allow to return up to 16 touch inputs per engine (diff) | |
download | yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.gz yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.bz2 yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.lz yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.xz yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.zst yuzu-8495e1bd8373fed993975e40c360c87409455e9e.zip |
Diffstat (limited to 'src/input_common/udp/client.h')
-rw-r--r-- | src/input_common/udp/client.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_common/udp/client.h b/src/input_common/udp/client.h index 1cd251ec8..822f9c550 100644 --- a/src/input_common/udp/client.h +++ b/src/input_common/udp/client.h @@ -28,8 +28,8 @@ class Socket; namespace Response { struct PadData; struct PortInfo; -struct Version; struct TouchPad; +struct Version; } // namespace Response enum class PadMotion { @@ -129,10 +129,10 @@ private: // Returns an unused finger id, if there is no fingers available std::nullopt will be // returned - std::optional<size_t> GetUnusedFingerID() const; + std::optional<std::size_t> GetUnusedFingerID() const; // Merges and updates all touch inputs into the touch_status array - void UpdateTouchInput(Response::TouchPad& touch_pad, size_t client, size_t id); + void UpdateTouchInput(Response::TouchPad& touch_pad, std::size_t client, std::size_t id); bool configuring = false; @@ -143,7 +143,7 @@ private: std::array<ClientData, MAX_UDP_CLIENTS> clients{}; Common::SPSCQueue<UDPPadStatus> pad_queue{}; Input::TouchStatus touch_status{}; - std::array<size_t, MAX_TOUCH_FINGERS> finger_id{}; + std::array<std::size_t, MAX_TOUCH_FINGERS> finger_id{}; }; /// An async job allowing configuration of the touchpad calibration. |