diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2024-11-08 02:27:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-07 17:27:19 -0800 |
| commit | fcc5cf828ded5d362b2e63a8868374a50df405ed (patch) | |
| tree | 530d7d6d8690599593f6588b04d10441e364b5c7 /src/boot/O2/padsetup.c | |
| parent | 9cd9099a0431b369be39f111bf57051f544bead3 (diff) | |
libu64 (#1705)
* libu64
* libu64 -O2
* Add libu64.md
Diffstat (limited to 'src/boot/O2/padsetup.c')
| -rw-r--r-- | src/boot/O2/padsetup.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/boot/O2/padsetup.c b/src/boot/O2/padsetup.c deleted file mode 100644 index ebbb5d828..000000000 --- a/src/boot/O2/padsetup.c +++ /dev/null @@ -1,35 +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; -} |
