author | Sam Lantinga <slouken@libsdl.org> |
Tue, 11 Dec 2012 10:49:54 -0800 | |
changeset 6735 | 486800c3f44c |
parent 6734 | 7fdaee2be782 |
child 6736 | 03dd4a1d06e9 |
--- a/src/joystick/SDL_joystick.c Tue Dec 11 12:07:06 2012 -0500 +++ b/src/joystick/SDL_joystick.c Tue Dec 11 10:49:54 2012 -0800 @@ -465,6 +465,9 @@ } /* Update internal joystick state */ + if (value == joystick->axes[axis]) { + return 0; + } joystick->axes[axis] = value; /* Post the event, if desired */