about summary refs log tree commit diff stats
path: root/source/link.c
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-11 16:37:21 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-11 16:37:21 -0400
commit57afb4058710a978bd7b07a368125d04378c62f1 (patch)
tree7a06f1679f0612c58d5a209a013261ff5ad6cb82 /source/link.c
parent004575f7cec14946c1936aceca6efee38b7f8a74 (diff)
downloadgen3uploader-57afb4058710a978bd7b07a368125d04378c62f1.tar.gz
gen3uploader-57afb4058710a978bd7b07a368125d04378c62f1.tar.bz2
gen3uploader-57afb4058710a978bd7b07a368125d04378c62f1.zip
started tweaking with stuff
Diffstat (limited to 'source/link.c')
-rw-r--r--source/link.c16
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
3u32 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}