diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2024-01-05 09:58:59 -0600 |
|---|---|---|
| committer | louist103 <35883445+louist103@users.noreply.github.com> | 2024-01-05 18:00:59 -0500 |
| commit | 9be74e0026b563ba680e1dc157521eccc89fc03f (patch) | |
| tree | ad27464c5b19b239991ed369454413ea3a30c802 /src/boot/O2/padsetup.c | |
| parent | 7c7021f3a211a3384d25b5a4175040750d50c248 (diff) | |
Move source into subdirectory
Diffstat (limited to 'src/boot/O2/padsetup.c')
| -rw-r--r-- | src/boot/O2/padsetup.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/boot/O2/padsetup.c b/src/boot/O2/padsetup.c deleted file mode 100644 index 9cef6f196..000000000 --- a/src/boot/O2/padsetup.c +++ /dev/null @@ -1,34 +0,0 @@ -#include "global.h" - -s32 PadSetup_Init(OSMesgQueue* mq, u8* outMask, OSContStatus* status) { - s32 ret; - s32 i; - - *outMask = 0xFF; - ret = osContInit(mq, outMask, status); - if (ret != 0) { - return ret; - } - if (*outMask == 0xFF) { - if (osContStartQuery(mq) != 0) { - return 1; - } - osRecvMesg(mq, NULL, OS_MESG_BLOCK); - osContGetQuery(status); - - *outMask = 0; - - for (i = 0; i < MAXCONTROLLERS; i++) { - switch (status[i].errno) { - case 0: - if (status[i].type == CONT_TYPE_NORMAL) { - *outMask |= 1 << i; - } - break; - default: - break; - } - } - } - return 0; -} |
