Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1406 → Rev 1550

/demos/trunk/input/input.c
60,7 → 60,7
 
void my_sysend(KEY_EVT *e)
{
sys_end();
exit(0);
}
 
void no_note(KEY_EVT *e)
428,7 → 428,7
pid = task_create("Key_Print", my_getch, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <Key_Print>\n");
sys_end();
exit(1);
} else
task_activate(pid);
 
442,7 → 442,7
pid = task_create("Joy_Print", my_getjoy, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <Joy_Print>\n");
sys_end();
exit(1);
} else
task_activate(pid);
}
/demos/trunk/input/initspk.c
103,8 → 103,6
 
device_drivers_close();
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
sys_abort_shutdown(0);
 
return NULL;
}
 
118,7 → 116,7
shutdown_task_PID = task_create("Shutdown Task", shutdown_task_body, &nrt, NULL);
if (shutdown_task_PID == NIL) {
sys_shutdown_message("Error: Cannot create shutdown task\n");
sys_end();
exit(1);
}
 
}
/demos/trunk/input/joy.c
46,7 → 46,7
cprintf("(%6d %6d) %2x\n", a0, a1, btn);
task_endcycle();
if (btn == 0xF)
sys_end();
exit(1);
}
}
 
57,7 → 57,7
 
if (!JOY26_installed()) {
cprintf("No Joystick found.");
sys_end();
exit(1);
}
soft_task_default_model(mp);
soft_task_def_level(mp,2);
68,7 → 68,7
pid = task_create("Joy_Print", my_getjoy, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <Joy_Print>\n");
sys_end();
exit(1);
} else
task_activate(pid);
 
/demos/trunk/input/initfile.c
125,7 → 125,7
shutdown_task_PID = task_create("Shutdown Task",shutdown_task_body,&nrt,NULL);
if (shutdown_task_PID == NIL) {
sys_shutdown_message("Error: Cannot create shutdown task\n");
sys_end();
exit(1);
}
}
 
165,7 → 165,7
JOY26_close();
KEYB26_close();
INPUT26_close();
sys_end();
exit(1);
}
FB26_use_grx(FRAME_BUFFER_DEVICE);
210,7 → 210,5
 
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
 
sys_abort_shutdown(0);
 
return NULL;
}
/demos/trunk/input/speak.c
43,7 → 43,7
speaker_sound(0, 0);
kern_printf("S.Ha.R.K. closed.\n\n");
sys_end();
exit(0);
}
 
void no_note(KEY_EVT *e){
/demos/trunk/input/initjoy.c
96,8 → 96,6
 
device_drivers_close();
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
sys_abort_shutdown(0);
 
return NULL;
}
 
111,7 → 109,7
shutdown_task_PID = task_create("Shutdown Task", shutdown_task_body, &nrt, NULL);
if (shutdown_task_PID == NIL) {
sys_shutdown_message("Error: Cannot create shutdown task\n");
sys_end();
exit(1);
}
 
}
/demos/trunk/input/key.c
40,7 → 40,7
void my_sysclose(KEY_EVT *e)
{
kern_printf("S.Ha.R.K. closed.\n\n");
sys_end();
exit(0);
}
 
TASK my_getch(void *arg) {
98,7 → 98,7
pid = task_create("Keyb_Print", my_getch, &mp, NULL);
if (pid == NIL) {
perror("Could not create task <Keyb_Print>");
sys_end();
exit(1);
} else
task_activate(pid);
 
/demos/trunk/input/mouse.c
43,7 → 43,7
{
mouse_txtcursor(DISABLE);
 
sys_end();
exit(0);
}
 
TASK my_putxy(void *arg) {
/demos/trunk/input/initkey.c
107,8 → 107,6
 
device_drivers_close();
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
sys_abort_shutdown(0);
 
return NULL;
}
 
124,7 → 122,7
shutdown_task_PID = task_create("Shutdown Task", shutdown_task_body, &nrt, NULL);
if (shutdown_task_PID == NIL) {
sys_shutdown_message("Error: Cannot create shutdown task\n");
sys_end();
exit(1);
}
 
}
/demos/trunk/input/initcur.c
111,8 → 111,6
 
device_drivers_close();
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
sys_abort_shutdown(0);
 
return NULL;
}
 
126,7 → 124,7
shutdown_task_PID = task_create("Shutdown Task", shutdown_task_body, &nrt, NULL);
if (shutdown_task_PID == NIL) {
sys_shutdown_message("Error: Cannot create shutdown task\n");
sys_end();
exit(1);
}
 
}