/* Return true if this joystick is known to have all axes centered at zero This isn't generally needed unless the joystick never generates an initial axis value near zero, e.g. it's emulating axes with digital buttons  */
static SDL_bool SDL_JoystickAxesCenteredAtZero(SDL_Joystick *joystick)
/* Return true if this joystick is known to have all axes centered at zero This isn't generally needed unless the joystick never generates an initial axis value near zero, e.g. it's emulating axes with digital buttons  */
static SDL_bool SDL_JoystickAxesCenteredAtZero(SDL_Joystick *joystick)
{
    static Uint32 zero_centered_joysticks[] = {
        MAKE_VIDPID(0x0e8f, 0x3013),
        MAKE_VIDPID(0x05a0, 0x3232),
    };
    int i;
    Uint32 id = MAKE_VIDPID(SDL_JoystickGetVendor(joystick),
                            SDL_JoystickGetProduct(joystick));
    if (joystick->naxes == 2) {
        return SDL_TRUE;
    }
    for (i = 0; i < SDL_arraysize(zero_centered_joysticks); ++i) {
        if (id == zero_centered_joysticks[i]) {
            return SDL_TRUE;
        }
    }
    return SDL_FALSE;
}