Files
st/include/nitro/touch.h
T
Yanis 3e57b7c175 Decompile TouchControl (98%) (#24)
* decompile touchcontrol (98%)

* fix broken match
2026-01-19 18:54:06 +01:00

43 lines
867 B
C

#pragma once
#include "global.h"
#include "nitro/math.h"
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct TouchStateFlags {
/* 00 */ Vec2us touchPos;
/* 04 */ u16 touch;
/* 06 */ u16 flags;
} TouchStateFlags; // size = 0x08
typedef struct TouchState {
/* 00 */ bool touch;
/* 01 */ bool unk_01;
/* 02 */ Vec2s touchPos;
} TouchState; // size = 0x06
typedef struct TouchStateU {
/* 00 */ bool touch;
/* 01 */ bool unk_01;
/* 02 */ Vec2us touchPos;
} TouchStateU; // size = 0x06
void WaitForTouchUpdate(u16 param1);
bool TP_GetTouchStateFlags(TouchStateFlags *pState);
static inline void TP_CopyState(TouchState *from, TouchState *to) {
to->touch = from->touch;
to->unk_01 = from->unk_01;
to->touchPos = from->touchPos;
}
extern TouchState data_02049b4c;
#ifdef __cplusplus
}
#endif