/* Returns the number of axis on the device.  */
int SDL_HapticNumAxes(SDL_Haptic *haptic)
/* Returns the number of axis on the device.  */
int SDL_HapticNumAxes(SDL_Haptic *haptic)
{
    if (!ValidHaptic(haptic)) {
        return -1;
    }
    return haptic->naxes;
}