6 int main(int argc
, char **argv
)
8 int x
= 0, y
= 0, button
= 0;
10 int status
= VideoInit();
16 fprintf(stderr
, "%s\n", UMD_GetError());
20 if (UMD_SingleClickAt(UMD_RIGHT
, 100, 100) < 0) {
21 fprintf(stderr
, "%s\n", UMD_GetError());
25 CollectInput(&x
, &y
, &button
);
28 fprintf(stderr
, "%s\n", UMD_GetError());
34 if (x
!= 100 || y
!= 100 || button
!= 1) {
35 fprintf(stderr
, "Got\t%d\t%d\t%d\n", x
, y
, button
);
36 fprintf(stderr
, "Expected\t100\t100\t1\n");
37 fprintf(stderr
, "Test failed\n");
41 printf("Test successful!\n");