src/haptic/windows/SDL_dinputhaptic.c
changeset 13789 a359f4f93439
parent 13635 701fe6486077
child 13838 02e41b30186f
     1.1 --- a/src/haptic/windows/SDL_dinputhaptic.c	Mon May 04 10:16:10 2020 -0700
     1.2 +++ b/src/haptic/windows/SDL_dinputhaptic.c	Mon May 04 13:17:43 2020 -0700
     1.3 @@ -589,7 +589,7 @@
     1.4          if (naxes > 2)
     1.5              rglDir[2] = dir->dir[2];
     1.6          return 0;
     1.7 -    case SDL_HAPTIC_FIRST_AXIS:
     1.8 +    case SDL_HAPTIC_STEERING_AXIS:
     1.9          effect->dwFlags |= DIEFF_CARTESIAN;
    1.10          rglDir[0] = 0;
    1.11          return 0;
    1.12 @@ -641,7 +641,7 @@
    1.13      envelope->dwSize = sizeof(DIENVELOPE);      /* Always should be this. */
    1.14  
    1.15      /* Axes. */
    1.16 -    if (src->constant.direction.type == SDL_HAPTIC_FIRST_AXIS) {
    1.17 +    if (src->constant.direction.type == SDL_HAPTIC_STEERING_AXIS) {
    1.18          dest->cAxes = 1;
    1.19      } else {
    1.20          dest->cAxes = haptic->naxes;