*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Mon, 16 Feb 2004 21:15:25 +0000
changeset 834d37179d10ccc
parent 833 31fa08b36380
child 835 02b4ab953ea1
*** empty log message ***
src/joystick/win32/SDL_mmjoystick.c
     1.1 --- a/src/joystick/win32/SDL_mmjoystick.c	Mon Feb 16 21:09:24 2004 +0000
     1.2 +++ b/src/joystick/win32/SDL_mmjoystick.c	Mon Feb 16 21:15:25 2004 +0000
     1.3 @@ -43,7 +43,8 @@
     1.4  #define MAX_BUTTONS	32	/* and 32 buttons                      */
     1.5  #define AXIS_MIN	-32768  /* minimum value for axis coordinate */
     1.6  #define AXIS_MAX	32767   /* maximum value for axis coordinate */
     1.7 -#define JOY_AXIS_THRESHOLD	(((AXIS_MAX)-(AXIS_MIN))/100) /* 1% motion */
     1.8 +/* limit axis to 256 possible positions to filter out noise */
     1.9 +#define JOY_AXIS_THRESHOLD      (((AXIS_MAX)-(AXIS_MIN))/256)
    1.10  #define JOY_BUTTON_FLAG(n)	(1<<n)
    1.11  
    1.12