From 6f707bb31d5411e8292b8df833f1faccfc70fc64 Mon Sep 17 00:00:00 2001 From: Aetias Date: Tue, 19 Mar 2024 17:53:59 +0100 Subject: Add `TouchControl.s` --- include/lib/touch.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/lib/touch.h (limited to 'include/lib') diff --git a/include/lib/touch.h b/include/lib/touch.h new file mode 100644 index 00000000..41d29e4d --- /dev/null +++ b/include/lib/touch.h @@ -0,0 +1,17 @@ +#pragma once + +struct TouchStateFlags { + u16 touchX; + u16 touchY; + u16 touch; + u16 flags; +}; + +struct TouchState { + bool touch; + s32 touchX; + s32 touchY; +}; + +void WaitForTouchUpdate(u16 param1); +bool GetTouchStateFlags(TouchStateFlags *pState); -- cgit v1.2.3