SDL_GetHaptics() follows the SDL_GetStringRule
This commit is contained in:
@@ -327,7 +327,7 @@ SDL_DYNAPI_PROC(SDL_Haptic*,SDL_GetHapticFromID,(SDL_HapticID a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_HapticID,SDL_GetHapticID,(SDL_Haptic *a),(a),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetHapticName,(SDL_Haptic *a),(a),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetHapticNameForID,(SDL_HapticID a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_HapticID*,SDL_GetHaptics,(int *a),(a),return)
|
||||
SDL_DYNAPI_PROC(const SDL_HapticID*,SDL_GetHaptics,(int *a),(a),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetHint,(const char *a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_GetHintBoolean,(const char *a, SDL_bool b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(SDL_PropertiesID,SDL_GetIOProperties,(SDL_IOStream *a),(a),return)
|
||||
|
||||
@@ -63,7 +63,7 @@ static SDL_bool SDL_GetHapticIndex(SDL_HapticID instance_id, int *driver_index)
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_HapticID *SDL_GetHaptics(int *count)
|
||||
const SDL_HapticID *SDL_GetHaptics(int *count)
|
||||
{
|
||||
int device_index;
|
||||
int haptic_index = 0, num_haptics = 0;
|
||||
@@ -89,7 +89,7 @@ SDL_HapticID *SDL_GetHaptics(int *count)
|
||||
}
|
||||
}
|
||||
|
||||
return haptics;
|
||||
return SDL_FreeLater(haptics);
|
||||
}
|
||||
|
||||
const char *SDL_GetHapticNameForID(SDL_HapticID instance_id)
|
||||
|
||||
Reference in New Issue
Block a user