SDL_GetTouchDevices() follows the SDL_GetStringRule

This commit is contained in:
Sam Lantinga
2024-07-18 22:15:11 -07:00
parent 856d598d6e
commit eb22fcce35
4 changed files with 9 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ SDL_bool SDL_TouchDevicesAvailable(void)
return SDL_num_touch > 0;
}
SDL_TouchID *SDL_GetTouchDevices(int *count)
const SDL_TouchID *SDL_GetTouchDevices(int *count)
{
if (count) {
*count = 0;
@@ -67,7 +67,7 @@ SDL_TouchID *SDL_GetTouchDevices(int *count)
}
}
return retval;
return SDL_FreeLater(retval);
}
static int SDL_GetTouchIndex(SDL_TouchID id)