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:
Sam Lantinga
2024-07-14 15:22:03 -07:00
parent 0cdc60666b
commit 5c875e1183
21 changed files with 215 additions and 215 deletions

View File

@@ -242,24 +242,24 @@ SDL3_0.0.0 {
SDL_GetGamepadFirmwareVersion;
SDL_GetGamepadFromID;
SDL_GetGamepadFromPlayerIndex;
SDL_GetGamepadGUIDFromID;
SDL_GetGamepadGUIDForID;
SDL_GetGamepadID;
SDL_GetGamepadJoystick;
SDL_GetGamepadMapping;
SDL_GetGamepadMappingForGUID;
SDL_GetGamepadMappingFromID;
SDL_GetGamepadMappingForID;
SDL_GetGamepadMappings;
SDL_GetGamepadName;
SDL_GetGamepadNameFromID;
SDL_GetGamepadNameForID;
SDL_GetGamepadPath;
SDL_GetGamepadPathFromID;
SDL_GetGamepadPathForID;
SDL_GetGamepadPlayerIndex;
SDL_GetGamepadPlayerIndexFromID;
SDL_GetGamepadPlayerIndexForID;
SDL_GetGamepadPowerInfo;
SDL_GetGamepadProduct;
SDL_GetGamepadProductFromID;
SDL_GetGamepadProductForID;
SDL_GetGamepadProductVersion;
SDL_GetGamepadProductVersionFromID;
SDL_GetGamepadProductVersionForID;
SDL_GetGamepadProperties;
SDL_GetGamepadSensorData;
SDL_GetGamepadSensorDataRate;
@@ -270,10 +270,10 @@ SDL3_0.0.0 {
SDL_GetGamepadStringForType;
SDL_GetGamepadTouchpadFinger;
SDL_GetGamepadType;
SDL_GetGamepadTypeFromID;
SDL_GetGamepadTypeForID;
SDL_GetGamepadTypeFromString;
SDL_GetGamepadVendor;
SDL_GetGamepadVendorFromID;
SDL_GetGamepadVendorForID;
SDL_GetGamepads;
SDL_GetGlobalMouseState;
SDL_GetGlobalProperties;
@@ -283,7 +283,7 @@ SDL3_0.0.0 {
SDL_GetHapticFromID;
SDL_GetHapticID;
SDL_GetHapticName;
SDL_GetHapticNameFromID;
SDL_GetHapticNameForID;
SDL_GetHaptics;
SDL_GetHint;
SDL_GetHintBoolean;
@@ -299,35 +299,35 @@ SDL3_0.0.0 {
SDL_GetJoystickFromID;
SDL_GetJoystickFromPlayerIndex;
SDL_GetJoystickGUID;
SDL_GetJoystickGUIDFromID;
SDL_GetJoystickGUIDForID;
SDL_GetJoystickGUIDFromString;
SDL_GetJoystickGUIDInfo;
SDL_GetJoystickGUIDString;
SDL_GetJoystickHat;
SDL_GetJoystickID;
SDL_GetJoystickName;
SDL_GetJoystickNameFromID;
SDL_GetJoystickNameForID;
SDL_GetJoystickPath;
SDL_GetJoystickPathFromID;
SDL_GetJoystickPathForID;
SDL_GetJoystickPlayerIndex;
SDL_GetJoystickPlayerIndexFromID;
SDL_GetJoystickPlayerIndexForID;
SDL_GetJoystickPowerInfo;
SDL_GetJoystickProduct;
SDL_GetJoystickProductFromID;
SDL_GetJoystickProductForID;
SDL_GetJoystickProductVersion;
SDL_GetJoystickProductVersionFromID;
SDL_GetJoystickProductVersionForID;
SDL_GetJoystickProperties;
SDL_GetJoystickSerial;
SDL_GetJoystickType;
SDL_GetJoystickTypeFromID;
SDL_GetJoystickTypeForID;
SDL_GetJoystickVendor;
SDL_GetJoystickVendorFromID;
SDL_GetJoystickVendorForID;
SDL_GetJoysticks;
SDL_GetKeyFromName;
SDL_GetKeyFromScancode;
SDL_GetKeyName;
SDL_GetKeyboardFocus;
SDL_GetKeyboardNameFromID;
SDL_GetKeyboardNameForID;
SDL_GetKeyboardState;
SDL_GetKeyboards;
SDL_GetLogOutputFunction;
@@ -339,7 +339,7 @@ SDL3_0.0.0 {
SDL_GetMice;
SDL_GetModState;
SDL_GetMouseFocus;
SDL_GetMouseNameFromID;
SDL_GetMouseNameForID;
SDL_GetMouseState;
SDL_GetNaturalDisplayOrientation;
SDL_GetNumAllocations;
@@ -380,7 +380,7 @@ SDL3_0.0.0 {
SDL_GetRGB;
SDL_GetRGBA;
SDL_GetRealGamepadType;
SDL_GetRealGamepadTypeFromID;
SDL_GetRealGamepadTypeForID;
SDL_GetRectAndLineIntersection;
SDL_GetRectAndLineIntersectionFloat;
SDL_GetRectEnclosingPoints;
@@ -421,12 +421,12 @@ SDL3_0.0.0 {
SDL_GetSensorFromID;
SDL_GetSensorID;
SDL_GetSensorName;
SDL_GetSensorNameFromID;
SDL_GetSensorNameForID;
SDL_GetSensorNonPortableType;
SDL_GetSensorNonPortableTypeFromID;
SDL_GetSensorNonPortableTypeForID;
SDL_GetSensorProperties;
SDL_GetSensorType;
SDL_GetSensorTypeFromID;
SDL_GetSensorTypeForID;
SDL_GetSensors;
SDL_GetSilenceValueForFormat;
SDL_GetStorageFileSize;