From 57afb4058710a978bd7b07a368125d04378c62f1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 11 Jul 2017 16:37:21 -0400 Subject: started tweaking with stuff --- source/link.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 source/link.c (limited to 'source/link.c') diff --git a/source/link.c b/source/link.c new file mode 100644 index 0000000..7229191 --- /dev/null +++ b/source/link.c @@ -0,0 +1,16 @@ +#include "link.h" + +u32 waitForButtons(u32 mask) +{ + for (;;) + { + PAD_ScanPads(); + VIDEO_WaitVSync(); + + u32 btns = PAD_ButtonsDown(0); + if (btns & mask) + { + return btns; + } + } +} -- cgit 1.4.1