15,8 → 15,6 |
*/ |
|
/* |
* Copyright (C) 2000 Paolo Gai |
* |
* This program is free software; you can redistribute it and/or modify |
* it under the terms of the GNU General Public License as published by |
* the Free Software Foundation; either version 2 of the License, or |
30,7 → 28,6 |
* You should have received a copy of the GNU General Public License |
* along with this program; if not, write to the Free Software |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* |
*/ |
|
#include <kernel/kern.h> |
38,8 → 35,6 |
#include <stdlib.h> |
#include <string.h> |
|
#include <drivers/shark_linuxc26.h> |
#include <drivers/shark_input26.h> |
#include <drivers/shark_mouse26.h> |
#include <drivers/shark_keyb26.h> |
#include <drivers/shark_spk26.h> |
48,10 → 43,6 |
{ |
mouse_txtcursor(DISABLE); |
|
MOUSE26_close(); |
KEYB26_close(); |
INPUT26_close(); |
|
kern_printf("S.Ha.R.K. closed.\n\n"); |
sys_end(); |
} |
64,7 → 55,7 |
clear(); |
|
while (1) { |
mouse_getpos(&x, &y, &z, &btn); |
mouse_getposition(&x, &y, &z, &btn); |
place(10, 10); |
printk("X: %2d - Y: %2d - Z: %3d - Btn: %4d\n", x, y, z, (int)btn); |
|
93,7 → 84,6 |
soft_task_def_ctrl_jet(mp); |
soft_task_def_met(mp,700); |
soft_task_def_period(mp,1000); |
//soft_task_def_aperiodic(mp); |
soft_task_def_usemath(mp); |
pid = task_create("Mouse_Print", my_putxy, &mp, NULL); |
if (pid == NIL) { |
102,10 → 92,5 |
} else |
task_activate(pid); |
|
while ( (sys_gettime(NULL)/1000) < 20000); |
my_sysclose(NULL); |
|
//while(1); |
|
return 0; |
} |