Fixed building on non-Android platforms
authorSam Lantinga <slouken@libsdl.org>
Wed, 01 Nov 2017 10:07:04 -0700
changeset 11664c677bf234773
parent 11663 0d96acbd34f0
child 11665 861f42ecf09a
Fixed building on non-Android platforms
src/joystick/SDL_gamecontroller.c
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Wed Nov 01 10:06:58 2017 -0700
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Wed Nov 01 10:07:04 2017 -0700
     1.3 @@ -926,8 +926,8 @@
     1.4          SDL_snprintf(mapping_string, sizeof(mapping_string), "none,%s,a:b0,b:b1,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,", name);
     1.5          mapping = SDL_PrivateAddMappingForGUID(guid, mapping_string,
     1.6                            &existing, SDL_CONTROLLER_MAPPING_PRIORITY_DEFAULT);
     1.7 +    }
     1.8  #endif /* __ANDROID__ */
     1.9 -    }
    1.10      SDL_UnlockJoysticks();
    1.11      return mapping;
    1.12  }