diff options
Diffstat (limited to 'source/link.c')
-rw-r--r-- | source/link.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ | |||
1 | #include "link.h" | ||
2 | |||
3 | u32 waitForButtons(u32 mask) | ||
4 | { | ||
5 | for (;;) | ||
6 | { | ||
7 | PAD_ScanPads(); | ||
8 | VIDEO_WaitVSync(); | ||
9 | |||
10 | u32 btns = PAD_ButtonsDown(0); | ||
11 | if (btns & mask) | ||
12 | { | ||
13 | return btns; | ||
14 | } | ||
15 | } | ||
16 | } | ||