Mercurial > sdl-ios-xcode
changeset 834:d37179d10ccc
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 16 Feb 2004 21:15:25 +0000 |
parents | 31fa08b36380 |
children | 02b4ab953ea1 |
files | src/joystick/win32/SDL_mmjoystick.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/joystick/win32/SDL_mmjoystick.c Mon Feb 16 21:09:24 2004 +0000 +++ b/src/joystick/win32/SDL_mmjoystick.c Mon Feb 16 21:15:25 2004 +0000 @@ -43,7 +43,8 @@ #define MAX_BUTTONS 32 /* and 32 buttons */ #define AXIS_MIN -32768 /* minimum value for axis coordinate */ #define AXIS_MAX 32767 /* maximum value for axis coordinate */ -#define JOY_AXIS_THRESHOLD (((AXIS_MAX)-(AXIS_MIN))/100) /* 1% motion */ +/* limit axis to 256 possible positions to filter out noise */ +#define JOY_AXIS_THRESHOLD (((AXIS_MAX)-(AXIS_MIN))/256) #define JOY_BUTTON_FLAG(n) (1<<n)