summaryrefslogtreecommitdiff
path: root/src/00_Core/Player/TouchControl.cpp
diff options
context:
space:
mode:
authorYanis <35189056+Yanis002@users.noreply.github.com>2026-01-30 18:36:20 +0100
committerGitHub <noreply@github.com>2026-01-30 18:36:20 +0100
commit98cc0af690719f10bd7b67c1c11d207bfcdbbfe7 (patch)
tree106937a3d0b6476d44872d8ccf2cfc6b0a6a03df /src/00_Core/Player/TouchControl.cpp
parente5701a754e910812061cdd7aa2012feca050a6c4 (diff)
Started `TouchControl.cpp` (#111)
* start both `TouchControl.cpp` * fix build issues * complete touchcontrol * remove useless comment --------- Co-authored-by: Yanis002 <Yanis002@users.noreply.github.com>
Diffstat (limited to 'src/00_Core/Player/TouchControl.cpp')
-rw-r--r--src/00_Core/Player/TouchControl.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/00_Core/Player/TouchControl.cpp b/src/00_Core/Player/TouchControl.cpp
deleted file mode 100644
index c4a586bc..00000000
--- a/src/00_Core/Player/TouchControl.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-#include "Player/TouchControl.hpp"
-
-void TouchControl::Init() {}
-
-void TouchControl::IncreaseSpeed(s16 increase) {
- this->mFlags = 0;
- this->mSpeed += increase;
-}
-
-void TouchControl::UpdateFlags(u16 speed) {}
-void TouchControl::UpdateWithStateFlags(TouchStateFlags *state, u16 speed) {}
-void TouchControl::Update(TouchState *state, u16 speed) {}
-bool TouchControl::func_ov00_0207aeac() {
- return ((*data_0207aecc & 0x8000) >> 15) == 1;
-}
-void TouchControl::UpdateConditionally(TouchState *state, u16 speed) {}
-
-void TouchControl::func_ov00_0207af38(u16 speedIncrease, bool shouldIncrease) {
- TouchStateFlags touchState;
-
- if (shouldIncrease) {
- IncreaseSpeed(speedIncrease); /* TODO: IncreaseSpeed expects an s16 variable,
- while speedIncrease is a u16. As a result, the function
- performs a conversion that is not present in the binary. */
- return;
- }
-
- u32 result = TouchControl::func_ov00_0207aeac();
- if (result != 0) {
- Fill16(0, &touchState.touchX, 8);
- } else {
-
- GetTouchStateFlags(&touchState);
- }
-
- UpdateWithStateFlags(&touchState, speedIncrease);
-}
-
-TouchControl::~TouchControl() {}