Renamed *FromID() to *ForID()
While it makes sense to get an object pointer from an object ID, you want to get object attributes for an ID, otherwise e.g. GetNameFromID() sounds like it's a name ID, not an object ID. This is also consistent with the function naming convention in SDL2.
This commit is contained in:
@@ -92,7 +92,7 @@ SDL_HapticID *SDL_GetHaptics(int *count)
|
||||
return haptics;
|
||||
}
|
||||
|
||||
const char *SDL_GetHapticNameFromID(SDL_HapticID instance_id)
|
||||
const char *SDL_GetHapticNameForID(SDL_HapticID instance_id)
|
||||
{
|
||||
int device_index;
|
||||
const char *name = NULL;
|
||||
|
||||
Reference in New Issue
Block a user