diff options
author | Lioncash <mathew1800@gmail.com> | 2021-05-18 09:59:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-05-18 09:59:44 +0200 |
commit | 44556dc21ac5609e5c60334347baa60701d056b3 (patch) | |
tree | 06c487c2510e0aaedecdc427c610971f8708982b /src/core/hle/service/hid/controllers/gesture.h | |
parent | hid/gesture: Ensure all ID arrays are initialized (diff) | |
download | yuzu-44556dc21ac5609e5c60334347baa60701d056b3.tar yuzu-44556dc21ac5609e5c60334347baa60701d056b3.tar.gz yuzu-44556dc21ac5609e5c60334347baa60701d056b3.tar.bz2 yuzu-44556dc21ac5609e5c60334347baa60701d056b3.tar.lz yuzu-44556dc21ac5609e5c60334347baa60701d056b3.tar.xz yuzu-44556dc21ac5609e5c60334347baa60701d056b3.tar.zst yuzu-44556dc21ac5609e5c60334347baa60701d056b3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/gesture.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/gesture.h b/src/core/hle/service/hid/controllers/gesture.h index c1578ec25..eecfeaad5 100644 --- a/src/core/hle/service/hid/controllers/gesture.h +++ b/src/core/hle/service/hid/controllers/gesture.h @@ -162,7 +162,11 @@ private: TouchType& type); // Returns an unused finger id, if there is no fingers available std::nullopt is returned. - std::optional<size_t> GetUnusedFingerID() const; + [[nodiscard]] std::optional<size_t> GetUnusedFingerID() const; + + // Retrieves the last gesture entry, as indicated by shared memory indices. + [[nodiscard]] GestureState& GetLastGestureEntry(); + [[nodiscard]] const GestureState& GetLastGestureEntry() const; /** * If the touch is new it tries to assign a new finger id, if there is no fingers available no |