Skip to content

Commit 2689e7a

Browse files
committed
Remove debugging printfs
1 parent d8f37d8 commit 2689e7a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

libogc/pad.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@ static void __pad_enable(u32 chan)
438438
static void __pad_enablekeyboard(u32 chan)
439439
{
440440
u32 buf[2];
441-
//#ifdef _PAD_DEBUG
441+
#ifdef _PAD_DEBUG
442442
printf("__pad_enablekeyboard(%d)\n",chan);
443-
//#endif
443+
#endif
444444
__pad_enabledbits |= PAD_ENABLEDMASK(chan);
445445
SI_GetResponse(chan,(void*)buf);
446446
SI_SetCommand(chan,__pad_cmdinitkeyboard);
@@ -787,12 +787,10 @@ u32 PAD_ScanPads(void)
787787

788788
switch(padstatus[i].err) {
789789
case PAD_ERR_NONE:
790-
printf("PAD_ERR_NONE\n");
791790
if (type == PAD_TYPE_KEYBOARD) {
792791
keys[0] = (u8)(padstatus[i].substickX - 128);
793792
keys[1] = (u8)(padstatus[i].substickY - 128);
794793
keys[2] = (u8)(padstatus[i].triggerL);
795-
printf("%d %d %d\n", keys[0], keys[1], keys[2]);
796794

797795
// Only update if keys did not roll over
798796
if (keys[0] != 1 && keys[1] != 1 && keys[2] != 1 &&
@@ -846,7 +844,6 @@ u32 PAD_ScanPads(void)
846844
__pad_keys[i].keyboard_state[2] = keys[2];
847845
}
848846
} else {
849-
printf("GC pad\n");
850847
oldstate = __pad_keys[i].state;
851848
memset(&__pad_keys[i],0,sizeof(keyinput));
852849
state = padstatus[i].button;
@@ -865,14 +862,12 @@ u32 PAD_ScanPads(void)
865862
break;
866863

867864
case PAD_ERR_NO_CONTROLLER:
868-
printf("No pad\n");
869865
if(__pad_keys[i].chan!=-1) memset(&__pad_keys[i],0,sizeof(keyinput));
870866
__pad_keys[i].chan = -1;
871867
resetBits |= padBit;
872868
break;
873869

874870
default:
875-
printf("Default\n");
876871
break;
877872
}
878873
}

0 commit comments

Comments
 (0)