diff options
author | german <german@thesoftwareartisans.com> | 2021-01-02 22:04:50 -0600 |
---|---|---|
committer | german <german@thesoftwareartisans.com> | 2021-01-15 09:05:17 -0600 |
commit | 8495e1bd8373fed993975e40c360c87409455e9e (patch) | |
tree | fffff1304673212280dc0e927b69efa3ca4fc8b3 /src/input_common/udp/client.h | |
parent | d8df9a16bd4f4517b024c17446a94915493d7f3d (diff) |
Add mutitouch support for touch screens
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 1cd251ec8e..822f9c5503 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. |