hitrost usb miske

Andraz Tori Andraz.tori1 at guest.arnes.si
Wed Jan 28 11:36:43 CET 2004


Za vse, ki imate problem s hitrostjo USB miske. Evo tule resitev
problema, ki bi sicer bolj spadala v "saj ni res pa je". Linux še ni za
na namizja.

Resitev sem nasel na http://heroinewarrior.com/cinelerra/cinelerra.html
. zadnjem mestu kjer bi iskal :)

---------------------------------------------
REDUCING USB MOUSE SENSITIVITY
Gamers like high resolution mice, but this can be painful for precisely
positioning the mouse on a timeline or video screen. XFree86 once
allowed you to reduce PS/2 mouse sensitivity using commands like xset m
1 1 but you're out of luck with USB mice or KVM's. 

We have a way to reduce USB mouse sensitivity. Edit
/usr/src/linux/drivers/input/mousedev.c. 

After the line saying

     struct mousedev_list {
     

put

     #define DOWNSAMPLE_N 100
     #define DOWNSAMPLE_D 350
     int x_accum, y_accum;
     

Next, the section which says something like:

     case EV_REL:
     	switch (code) {
     		case REL_X:	list->dx += value; break;
     		case REL_Y:	list->dy -= value; break;
     		case REL_WHEEL:	if (list->mode) list->dz -= value; break;
     	}
     	break;
     

must be replaced by

          case EV_REL:
     	switch (code) {
     		case REL_X:
     			list->x_accum += value * DOWNSAMPLE_N;
     			list->dx += (int)list->x_accum / (int)DOWNSAMPLE_D;
     			list->x_accum -= ((int)list->x_accum / (int)DOWNSAMPLE_D) * (int)DOWNSAMPLE_D;
     			break;
     		case REL_Y:
     			list->y_accum += value * DOWNSAMPLE_N;
     			list->dy -= (int)list->y_accum / (int)DOWNSAMPLE_D;
     			list->y_accum -= ((int)list->y_accum / (int)DOWNSAMPLE_D) * (int)DOWNSAMPLE_D;
     			break;
     		case REL_WHEEL:	if (list->mode) list->dz -= value; break;
     	}
     	break;
     
     
     
     

Change the value of DOWNSAMPLE_N to change the mouse sensitivity.
----------------------------------------




More information about the lugos-list mailing list