From: Stephan B. <sb...@op...> - 2003-09-30 12:36:44
|
> > (btw., I had to make some > > changes in the source code to compile it correctly, as my system still > > uses a V2.2.x linux kernel (undefined constants in src/linux/lmseev.c, > > missing #include <sys/time.h> in setup/setup.c)) > > Could you post a patch for these changes (diff -u)? TIA. It is only a short hack to get exmouse working. For the added includes, one may must add target dependent defines. In src/linux/lmseev.c, I simply commented out the lines with undefined constants, which is probably not accurate. Here is the diff: diff -ur allegro-4.1.11.orig/setup/setup.c allegro-4.1.11/setup/setup.c --- allegro-4.1.11.orig/setup/setup.c Mon Jun 30 01:27:02 2003 +++ allegro-4.1.11/setup/setup.c Tue Sep 30 14:11:50 2003 @@ -20,6 +20,7 @@ #include <stdio.h> #include <string.h> +#include <sys/time.h> #include "allegro.h" #include "allegro/internal/aintern.h" diff -ur allegro-4.1.11.orig/src/linux/lmseev.c allegro-4.1.11/src/linux/lmseev.c --- allegro-4.1.11.orig/src/linux/lmseev.c Mon Jun 30 01:27:04 2003 +++ allegro-4.1.11/src/linux/lmseev.c Tue Sep 30 14:11:21 2003 @@ -344,7 +344,7 @@ get_axis_value(intdrv.device, &x_axis, ABS_X); get_axis_value(intdrv.device, &y_axis, ABS_Y); get_axis_value(intdrv.device, &z_axis, ABS_Z); - get_axis_value(intdrv.device, &z_axis, ABS_WHEEL); +// get_axis_value(intdrv.device, &z_axis, ABS_WHEEL); } else { current_tool = no_tool; @@ -371,7 +371,7 @@ y_axis.out_abs = rel_event(&y_axis, event->value); break; - case REL_WHEEL: +// case REL_WHEEL: case REL_Z: z_axis.out_abs = rel_event(&z_axis, event->value); break; @@ -397,7 +397,7 @@ y_axis.out_abs = abs_event(&y_axis, current_tool->mode, event->value); break; - case ABS_WHEEL: +// case ABS_WHEEL: case ABS_Z: z_axis.out_abs = abs_event(&z_axis, current_tool->mode, event->value); break; @@ -482,16 +482,16 @@ return 0; break; - case EV_MSC: +/* case EV_MSC: if (event->code>=MSC_MAX) return 0; - break; + break;*/ /* Mouse doesn't handle events of these types */ case EV_LED: case EV_SND: case EV_REP: - case EV_FF: +// case EV_FF: return 0; } } diff -ur allegro-4.1.11.orig/src/unix/usystem.c allegro-4.1.11/src/unix/usystem.c --- allegro-4.1.11.orig/src/unix/usystem.c Mon Jun 30 01:27:04 2003 +++ allegro-4.1.11/src/unix/usystem.c Tue Sep 30 14:11:58 2003 @@ -20,6 +20,7 @@ #include <stdlib.h> #include <string.h> #include <sys/stat.h> +#include <sys/time.h> #include "allegro.h" |