Lines Matching refs:i
196 s32 i; in Draw3D() local
199 for (i = 0; i < 191; i++) in Draw3D()
201 DrawLine((s16)(gMicData[i] >> 8), in Draw3D()
202 (s16)(i), (s16)(gMicData[i + 1] >> 8), (s16)(i + 1), GX_RGB(31, 31, 0)); in Draw3D()
206 for (i = 0; i < 4; i++) in Draw3D()
208 if (gTpData[i].touch == TP_TOUCH_ON) in Draw3D()
210 if (!(gTpData[i].validity & TP_VALIDITY_INVALID_X)) in Draw3D()
213 DrawLine((s16)(gTpData[i].x), in Draw3D()
215 (s16)(gTpData[i].x), in Draw3D()
216 (s16)(191), GX_RGB(31 - (i * 6), 31 - (i * 6), 31 - (i * 6))); in Draw3D()
218 if (!(gTpData[i].validity & TP_VALIDITY_INVALID_Y)) in Draw3D()
222 (s16)(gTpData[i].y), in Draw3D()
224 (s16)(gTpData[i].y), GX_RGB(31 - (i * 6), 31 - (i * 6), 31 - (i * 6))); in Draw3D()
298 int i; in KeyRead() local
306 for (i = 0; i < 12; i++) in KeyRead()
308 if (r & (0x0001 << i)) in KeyRead()
310 if (!(pKey->cnt & (0x0001 << i))) in KeyRead()
312 pKey->trg |= (0x0001 << i); // Press trigger in KeyRead()
313 repeat_count[i] = 1; in KeyRead()
317 if (repeat_count[i] > KEY_REPEAT_START) in KeyRead()
319 pKey->rep |= (0x0001 << i); // Press-and-hold repeat in KeyRead()
320 repeat_count[i] = KEY_REPEAT_START - KEY_REPEAT_SPAN; in KeyRead()
324 repeat_count[i]++; in KeyRead()
330 if (pKey->cnt & (0x0001 << i)) in KeyRead()
332 pKey->up |= (0x0001 << i); // Release trigger in KeyRead()