Lines Matching refs:i

303     int i;  in sysShutdown()  local
308 for(i=0; i<8; i++) in sysShutdown()
365 int i; in appInit() local
370 for(i=0; i<WPAD_MAX_CONTROLLERS; i++) in appInit()
372 rb[i] = 0; in appInit()
373 rbCount[i] = 0; in appInit()
374 acc[i] = 0; in appInit()
375 dpd[i] = 0; in appInit()
376 dpd_full[i] = 0; in appInit()
377 extGmk[i] = 0; in appInit()
378 dummyExt[i] = 0; in appInit()
393 int i; in wpadInit() local
418 for (i=0; i<WPAD_MAX_CONTROLLERS; i++) in wpadInit()
420 WPADSetConnectCallback(i, connectCallback); in wpadInit()
819 int i; in operate() local
835 for(i=0; i<WPAD_MAX_CONTROLLERS; i++) in operate()
837 if (!chan[i]) in operate()
842 WPADProbe(i, &type); in operate()
847 rb[i] = (rb[i]) ? 0 : 1; in operate()
848 rbCount[i] = 0; in operate()
851 WPADGetInfoAsync(i, &infos[i], NULL); in operate()
854 WPADDisconnect(i); in operate()
857 WPADReadGameData(i, readBuf[i], 3000, 0, NULL); in operate()
860 WPADWriteGameData(i, writeBuf[i], 3000, 0, NULL); in operate()
863 acc[i] = (acc[i]) ? 0 : 1; in operate()
864 resetController(i, type); in operate()
867 dpd[i] = (dpd[i]) ? 0 : 1; in operate()
868 resetController(i, type); in operate()
871 dpd_full[i] = (dpd_full[i]) ? 0 : 1; in operate()
872 resetController(i, type); in operate()
875 extGmk[i] = (extGmk[i]) ? 0 : 1; in operate()
876 … WPADControlExtGimmick(i, (u32)((extGmk[i]) ? WPAD_EXTGMK_ON : WPAD_EXTGMK_OFF), NULL); in operate()
879 dummyExt[i] = (dummyExt[i]) ? 0 : 1; in operate()
880 if (dummyExt[i]) in operate()
882 WPADAttachDummyExtension(i, WPAD_DEV_FUTURE); in operate()
886 WPADDetachDummyExtension(i); in operate()
890 if (WPADGetMplsStatus(i) != WPAD_MPLS_OFF) in operate()
892 WPADControlMpls(i, WPAD_MPLS_OFF, NULL); in operate()
896 WPADControlMpls(i, WPAD_MPLS_STD, NULL); in operate()
1113 s16 i; in renderScreen() local
1119 for(i=0; i<WPAD_MAX_CONTROLLERS; i++) in renderScreen()
1121 DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, "Ch%d", i); in renderScreen()
1201 s32 i, j; in renderStatus() local
1208 for (i=0; i<WPAD_MAX_CONTROLLERS; i++) in renderStatus()
1210 stat = WPADProbe(i, &type); in renderStatus()
1212 WPADGetAddress(i, addr); in renderStatus()
1217 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%02x%02x:%02x%02x:%02x%02x… in renderStatus()
1220 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", getErrName((s8)stat)); in renderStatus()
1221 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", getDevName(type)); in renderStatus()
1229 WPADRead(i, &wpad); in renderStatus()
1231 WPADGetSyncType(i, &sync); in renderStatus()
1233 WPADGetAccGravityUnit(i, WPAD_DEV_CORE, &acc); in renderStatus()
1236 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 40), (s16)(y-FONT_HEIGHT*3), 0, "[%s]", getSyn… in renderStatus()
1237 …MOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", getForma… in renderStatus()
1238 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%d", WPADGe… in renderStatus()
1252 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", btn); in renderStatus()
1254 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), (s16)(y+FONT_HEIGHT), 0, "%1.2lf", (f32)(… in renderStatus()
1255 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), (s16)(y+FONT_HEIGHT), 0, "%1.2lf", (f32)(… in renderStatus()
1256 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 90), y+=FONT_HEIGHT, 0, "%1.2lf", (f32)(… in renderStatus()
1260 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%04d, %04d, %d", wpad.obj[… in renderStatus()
1262 …)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s / %s", WPADIsDpdEnabled(i) ? "ON " : "… in renderStatus()
1264 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%.02f", getDistance((const… in renderStatus()
1266 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", getDevName(wpad.dev)); in renderStatus()
1267 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", getErrName(wpad.err))… in renderStatus()
1272 if ((infos[i].led >> j) & 0x1u) in renderStatus()
1277 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%d, %s", infos[i].battery,… in renderStatus()
1280 memset(game[i], 0, 17); in renderStatus()
1283 if (WPADGetGameTitleUtf16(i, &title) == WPAD_ERR_INVALID) in renderStatus()
1285 memcpy(game[i], "----", 5); in renderStatus()
1289 ENCConvertStringUtf16ToUtf8(game[i], &len, title, &len); in renderStatus()
1291 DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", game[i]); in renderStatus()
1292 if (WPADGetGameDataTimeStamp(i, &time) == WPAD_ERR_INVALID) in renderStatus()
1294 DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "--/-- --:--"); in renderStatus()
1299 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%02d/%02d %02d:%02d", ct.m… in renderStatus()
1310 WPADGetAccGravityUnit(i, WPAD_DEV_FREESTYLE, &acc); in renderStatus()
1314 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", cz); in renderStatus()
1316 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH) , (s16)(y+FONT_HEIGHT), 0, "%04d", fs->fsSt… in renderStatus()
1317 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), y+=FONT_HEIGHT, 0, "%04d", fs->fsSt… in renderStatus()
1319 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), (s16)(y+FONT_HEIGHT), 0, "%1.2lf", (f32)(… in renderStatus()
1320 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), (s16)(y+FONT_HEIGHT), 0, "%1.2lf", (f32)(… in renderStatus()
1321 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 90), y+=FONT_HEIGHT, 0, "%1.2lf", (f32)(… in renderStatus()
1350 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", clb); in renderStatus()
1352 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH) , (s16)(y+FONT_HEIGHT), 0, "%04d", cl->clLS… in renderStatus()
1353 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), y+=FONT_HEIGHT, 0, "%04d", cl->clLS… in renderStatus()
1354 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH) , (s16)(y+FONT_HEIGHT), 0, "%04d", cl->clRS… in renderStatus()
1355 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), y+=FONT_HEIGHT, 0, "%04d", cl->clRS… in renderStatus()
1357 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH) , (s16)(y+FONT_HEIGHT), 0, "%04d", cl->clTr… in renderStatus()
1358 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), y+=FONT_HEIGHT, 0, "%04d", cl->clTr… in renderStatus()
1378 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%s", trb); in renderStatus()
1380 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH) , (s16)(y+FONT_HEIGHT), 0, "%04d", tr->brak… in renderStatus()
1381 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), y+=FONT_HEIGHT, 0, "%04d", tr->masc… in renderStatus()
1390 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH) , (s16)(y+FONT_HEIGHT), 0, "%04d", bl->pres… in renderStatus()
1391 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), y+=FONT_HEIGHT, 0, "%04d", bl->pres… in renderStatus()
1392 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH) , (s16)(y+FONT_HEIGHT), 0, "%04d", bl->pres… in renderStatus()
1393 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH + 45), y+=FONT_HEIGHT, 0, "%04d", bl->pres… in renderStatus()
1395 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%04d", bl->batt… in renderStatus()
1397 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "%04d", bl->temp… in renderStatus()
1411 WPADGetMplsCalibration(i, &high, &low); in renderStatus()
1416 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "[%s] %5d%+8.2f", (mp->stat… in renderStatus()
1420 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "[%s] %5d%+8.2f", (mp->stat… in renderStatus()
1424 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, "[%s] %5d%+8.2f", (mp->stat… in renderStatus()
1426 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y+=FONT_HEIGHT, 0, " %s %s %s", in renderStatus()
1442 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, " %s", cz); … in renderStatus()
1443 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, " %d", (s16)(mp->ext.fs.fsStickX)); in renderStatus()
1444 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH+35), y, 0, " %d", (s16)(mp->ext.fs.fsStickY)); … in renderStatus()
1445 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, " %d", (s16)(mp->ext.fs.fsAccX)); in renderStatus()
1446 … DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH+35), y, 0, " %d", (s16)(mp->ext.fs.fsAccY)); in renderStatus()
1447 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH+70), y, 0, " %d", (s16)(mp->ext.fs.fsAccZ)); … in renderStatus()
1470 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, " %s", clb); … in renderStatus()
1471 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, " %d", (s16)(mp->ext.cl.clLStickX)); in renderStatus()
1472 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH+35), y, 0, " %d", (s16)(mp->ext.cl.clLStickY));… in renderStatus()
1473 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, " %d", (s16)(mp->ext.cl.clRStickX)); in renderStatus()
1474 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH+35), y, 0, " %d", (s16)(mp->ext.cl.clRStickY));… in renderStatus()
1475 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, " %d", (s16)(mp->ext.cl.clTriggerL))… in renderStatus()
1476 …DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH+35), y, 0, " %d", (s16)(mp->ext.cl.clTriggerR))… in renderStatus()
1538 int i; in renderAimings() local
1603 for (i=0; i<SMPBUF_SIZE-1; i++) in renderAimings()