summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/gesture.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-05-18 09:59:41 +0200
committerLioncash <mathew1800@gmail.com>2021-05-18 09:59:44 +0200
commit44556dc21ac5609e5c60334347baa60701d056b3 (patch)
tree06c487c2510e0aaedecdc427c610971f8708982b /src/core/hle/service/hid/controllers/gesture.h
parenthid/gesture: Ensure all ID arrays are initialized (diff)
downloadyuzu-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.h6
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