2019-06-03 02:27:44 +02:00

16 lines
297 B
C

#pragma once
#include "common.h"
typedef struct {
u16 x;
u16 y;
u16 w;
u16 h;
u32 id; // shouldn't be zero
} __attribute__((packed)) TouchBox;
// this assumes the touchscreen is actually in use
bool TouchBoxGet(u16* x, u16* y, u32* id, const TouchBox* tbs, const u32 tbn);