55,9 → 55,25 |
/* Mouse driver currently installed */ |
static int mouse_installed = FALSE; |
|
/*static PID mouse_pid = NIL;*/ |
/*static short int mouse_lim_x1 = 0; |
static short int mouse_lim_y1 = 0; |
static short int mouse_lim_x2 = 79; |
static short int mouse_lim_y2 = 24; |
static short int mouse_x = 40; |
static short int mouse_x_mick = 0; |
static short int mouse_y = 12; |
static short int mouse_y_mick = 0; |
static short int mouse_buttons = 0; |
static short int mouse_thresholdlim = 5; |
|
static MOUSE_HANDLER mouse_handler = NULL; |
static MOUSE_HANDLER user_mouse_handler = NULL; |
|
static int autocursormode=DISABLE; |
|
static PID mouse_pid = NIL;*/ |
|
|
/* |
* Start mouseProc Task |
*/ |
68,12 → 84,32 |
|
|
/* Init the Linux Speaker Driver */ |
/*int MOUSE26_init(MOUSE_PARMS *s)*/ |
int MOUSE26_init(void) |
{ |
/*MOUSE_PARMS mparms=BASE_MOUSE; |
TASK_MODEL *m; |
SOFT_TASK_MODEL base_m;*/ |
int status = 0; |
|
if (mouse_installed == TRUE) return 0; |
|
/* if a NULL is passed */ |
/*if (s == NULL) |
s = &mparms; |
|
if (s->tm == (TASK_MODEL *)MOUSE_DEFAULT) { |
soft_task_default_model(base_m); |
soft_task_def_wcet(base_m,2000); |
soft_task_def_met(base_m,500); |
soft_task_def_period(base_m,8000); |
soft_task_def_system(base_m); |
soft_task_def_nokill(base_m); |
soft_task_def_aperiodic(base_m); |
m = (TASK_MODEL *)&base_m; |
} else |
m = parms->tm;*/ |
|
if (input_installed == FALSE) { |
status = INPUT26_init(); |
if (status) { |