test/controllermap.c
changeset 8631 2ce6d7f3cf40
parent 8202 b84a1f55075e
child 8677 ce3c968f7340
     1.1 --- a/test/controllermap.c	Tue Mar 18 12:08:49 2014 -0400
     1.2 +++ b/test/controllermap.c	Tue Mar 18 12:33:57 2014 -0400
     1.3 @@ -251,6 +251,9 @@
     1.4                      
     1.5                      break;
     1.6                  case SDL_JOYHATMOTION:
     1.7 +                        if (event.jhat.value == SDL_HAT_CENTERED) {
     1.8 +                            break;  /* ignore centering, we're probably just coming back to the center from the previous item we set. */
     1.9 +                        }
    1.10                          for (_s = 0; _s < s; _s++) {
    1.11                              if (steps[_s].hat == event.jhat.hat && steps[_s].hat_value == event.jhat.value) {
    1.12                                  break;