// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Runtime.InteropServices; using JetBrains.Annotations; namespace SDL { public static partial class SDL3 { /// /// An array of that can be passed to . /// [MustDisposeResource] public static unsafe SDLArray? SDL_GetGamepadMappings() { int count; IntPtr* array = (IntPtr*)SDL_GetGamepadMappings(&count); return SDLArray.Create(array, count); } [MustDisposeResource] public static unsafe SDLArray? SDL_GetGamepads() { int count; var array = SDL_GetGamepads(&count); return SDLArray.Create(array, count); } [MustDisposeResource] public static unsafe SDLPointerArray? SDL_GetGamepadBindings(SDL_Gamepad* gamepad) { int count; var array = SDL_GetGamepadBindings(gamepad, &count); return SDLArray.Create(array, count); } } }