summaryrefslogtreecommitdiff
path: root/arm9/lib/include/tp.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-05-29 20:57:36 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-05-29 20:57:36 -0400
commitaf472505c60f7a0463e8195e9039af4806b9d42b (patch)
tree9dd5ab3396a9fd834b796a5fa8ad360321e952ec /arm9/lib/include/tp.h
parentfea86c63479708926cce890f65cf7c9217f6fc4c (diff)
Document game_init.c
Diffstat (limited to 'arm9/lib/include/tp.h')
-rw-r--r--arm9/lib/include/tp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arm9/lib/include/tp.h b/arm9/lib/include/tp.h
index d2687545..dc762f10 100644
--- a/arm9/lib/include/tp.h
+++ b/arm9/lib/include/tp.h
@@ -1,6 +1,14 @@
#ifndef NITRO_TP_H_
#define NITRO_TP_H_
+#define TP_TOUCH_OFF 0 // Not being touched
+#define TP_TOUCH_ON 1 // Being touched
+
+#define TP_VALIDITY_VALID 0 // Valid
+#define TP_VALIDITY_INVALID_X 1 // Data with invalid X coordinate
+#define TP_VALIDITY_INVALID_Y 2 // Data with invalid Y coordinate
+#define TP_VALIDITY_INVALID_XY (TP_VALIDITY_INVALID_X | TP_VALIDITY_INVALID_Y) // Data with invalid X and Y coordinates
+
// Touch panel input structure
typedef struct
{