summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2024-04-06 16:38:55 +0200
committerAetias <aetias@outlook.com>2024-04-06 16:38:55 +0200
commitdcf4270939e6ee0e54a332e2209a3baa0ad28fda (patch)
treec25c4350e01d6a6a62c56a3e0be1e098a0680061 /include
parent336defc99509c1cf5ccb18143c0891abd10054a4 (diff)
Add `TouchGesture`
Diffstat (limited to 'include')
-rw-r--r--include/Player/TouchGesture.hpp38
1 files changed, 37 insertions, 1 deletions
diff --git a/include/Player/TouchGesture.hpp b/include/Player/TouchGesture.hpp
index 25f5c8b9..59a756ef 100644
--- a/include/Player/TouchGesture.hpp
+++ b/include/Player/TouchGesture.hpp
@@ -1,3 +1,39 @@
#pragma once
-struct TouchGesture;
+#include "global.h"
+#include "types.h"
+
+#include "System/SysNew.hpp"
+
+#define GESTURE_BUFFER_LENGTH 14
+
+class TouchGestureBase : public SysObject {
+public:
+ /* 0 (vtable) */
+ /* 4 */ bool mUnk_4;
+ /* 5 */
+
+ /* 00 */ virtual ~TouchGestureBase();
+ /* 08 */ virtual void ResetTouchHistory();
+ /* 0c */ virtual void Update(void *param1) = 0;
+ /* 10 */
+};
+
+class TouchGesture : public TouchGestureBase {
+public:
+ /* 00 (base) */
+ /* 05 */ unk8 mUnk_05[7];
+ /* 0c */ u16 mIndex;
+ /* 0e */ unk16 mUnk_0e;
+ /* 10 */ u16 mUnk_10[GESTURE_BUFFER_LENGTH];
+ /* 2c */ u16 mTouchX[GESTURE_BUFFER_LENGTH];
+ /* 48 */ u16 mTouchY[GESTURE_BUFFER_LENGTH];
+ /* 64 */
+
+ /* 00 */ virtual ~TouchGesture() override;
+ /* 08 */ virtual void ResetTouchHistory() override;
+ /* 0c */ virtual void Update(void *param1) override;
+ /* 10 */
+
+ TouchGesture();
+};