mirror of
https://github.com/zeldaret/st
synced 2026-08-10 11:14:06 -04:00
Decompile TouchControl (98%) (#24)
* decompile touchcontrol (98%) * fix broken match
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user