Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1389 → Rev 1399

/demos/trunk/input/mouse.c
43,7 → 43,6
{
mouse_txtcursor(DISABLE);
 
kern_printf("S.Ha.R.K. closed.\n\n");
sys_end();
}
 
57,7 → 56,7
while (1) {
mouse_getposition(&x, &y, &z, &btn);
place(10, 10);
printk("X: %2d - Y: %2d - Z: %3d - Btn: %4d\n", x, y, z, (int)btn);
cprintf("X: %2d - Y: %2d - Z: %3d - Btn: %4d\n", x, y, z, (int)btn);
 
task_endcycle();
}
87,7 → 86,7
soft_task_def_usemath(mp);
pid = task_create("Mouse_Print", my_putxy, &mp, NULL);
if (pid == NIL) {
perror("Could not create task <Mouse_Print>");
sys_shutdown_message("Could not create task <Mouse_Print>\n");
my_sysclose(NULL);
} else
task_activate(pid);