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>
This commit is contained in:
Yanis
2026-01-30 18:36:20 +01:00
committed by GitHub
parent e5701a754e
commit 98cc0af690
13 changed files with 212 additions and 62 deletions
+22 -2
View File
@@ -1,4 +1,24 @@
#include "Player/TouchControl.hpp"
#include "global.h"
bool TouchControl::func_0202b864(Vec3p *param1, s32 size, unk8 param3) {}
bool TouchControl::func_0202b894(Vec3p *param1, s32 size, unk8 param3) {}
extern "C" bool func_0202b8f8(Vec3p *, s32, s32, s32, unk8);
ARM bool TouchControl::func_0202b864(Vec3p *param1, s32 size, unk8 param3) {
if (gTouchControl.mFlags & TouchFlag_TouchedNow) {
return func_0202b8f8(param1, size, gTouchControl.mTouchX, gTouchControl.mTouchY, param3);
}
return false;
}
ARM bool TouchControl::func_0202b894(Vec3p *param1, s32 size, unk8 param3) {
if (gTouchControl.mTouch) {
return func_0202b8f8(param1, size, gTouchControl.mTouchX, gTouchControl.mTouchY, param3);
}
if (gTouchControl.mFlags & TouchFlag_UntouchedNow) {
return func_0202b8f8(param1, size, gTouchControl.mTouchPrevX, gTouchControl.mTouchPrevY, param3);
}
return false;
}