testsuite: fix error in pad test

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3320 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-06-04 13:30:50 +00:00
parent c3e977796f
commit ebae5c1f94
1 changed files with 7 additions and 7 deletions

View File

@ -28,8 +28,12 @@ int main()
while(1)
{
std::cout<<"\x1b[0;0H"; // Position the cursor (at 0, 0)
VIDEO_WaitVSync();
console_init(xfb,20,20,rmode->fbWidth,rmode->xfbHeight,rmode->fbWidth*VI_DISPLAY_PIX_SZ);
PAD_Read(pad);
for(int a = 0; a < 4;a ++)
{
if(pad[a].err & PAD_ERR_NO_CONTROLLER)
@ -38,7 +42,7 @@ int main()
continue;
}
std::cout<<"pad["<<a<<"] Sticks: Main[ "<<(int)pad[a].stickX<<", "<<(int)pad[a].stickY<<" ] Sub[ "<<(int)pad[a].substickX<<", "<<(int)pad[a].substickX<<" ]\n";
std::cout<<"pad["<<a<<"] Analog Triggers: Left "<<(int)pad[a].triggerL<<" Right "<<(int)pad[a].triggerL<<"\n";
std::cout<<"pad["<<a<<"] Analog Triggers: Left "<<(int)pad[a].triggerL<<" Right "<<(int)pad[a].triggerR<<"\n";
std::cout<<"pad["<<a<<"] Buttons: "<<
(pad[a].button & PAD_BUTTON_START? "Start " : "")<<
(pad[a].button & PAD_BUTTON_A ? "A " : "")<<
@ -54,11 +58,7 @@ int main()
(pad[a].button & PAD_BUTTON_LEFT ? "Left " : "")<<
(pad[a].button & PAD_BUTTON_RIGHT ? "Right " : "")<<std::endl;
}
VIDEO_WaitVSync();
int buttonsDown = PAD_ButtonsDown(0);
}
}
}
void Initialise()