Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1398 → Rev 1399

/demos/trunk/input/joy.c
43,7 → 43,7
while (1) {
joy_getstatus(&a0, &a1, &a2, &a3, &btn);
printk ("(%6d %6d) %2x\n", a0, a1, btn);
cprintf("(%6d %6d) %2x\n", a0, a1, btn);
task_endcycle();
if (btn == 0xF)
sys_end();
56,7 → 56,7
PID pid;
 
if (!JOY26_installed()) {
printk("No Joystick found.");
cprintf("No Joystick found.");
sys_end();
}
soft_task_default_model(mp);
67,7 → 67,7
soft_task_def_usemath(mp);
pid = task_create("Joy_Print", my_getjoy, &mp, NULL);
if (pid == NIL) {
perror("Could not create task <Joy_Print>");
sys_shutdown_message("Could not create task <Joy_Print>\n");
sys_end();
} else
task_activate(pid);