diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2024-11-01 23:47:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-01 18:47:12 -0400 |
| commit | 5b27899b9fea7cc704cee9c0e740c00fbf24ddab (patch) | |
| tree | 6cd37e84d25722317636355ce15249dbc4f6e227 /src/code/padsetup.c | |
| parent | 012c192f0052addcbe5368d872f908ec240ee478 (diff) | |
libu64 (#2267)
* libu64
* logutils.o -> debug.o in spec
* stackcheck.c is part of libu64
* review
* add paragraph about Overlay_Load calling an external function
* audio code*
Diffstat (limited to 'src/code/padsetup.c')
| -rw-r--r-- | src/code/padsetup.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/code/padsetup.c b/src/code/padsetup.c deleted file mode 100644 index 20a546ae3..000000000 --- a/src/code/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; -} |
