diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs index 006f7e8..cc981ef 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs @@ -662,15 +662,6 @@ namespace SDL public ulong timestamp; public SDL_CameraDeviceID which; - - [NativeTypeName("Uint8")] - public byte padding1; - - [NativeTypeName("Uint8")] - public byte padding2; - - [NativeTypeName("Uint8")] - public byte padding3; } public partial struct SDL_TouchFingerEvent diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_log.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_log.g.cs index c28a908..bf25cfb 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_log.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_log.g.cs @@ -109,8 +109,5 @@ namespace SDL [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void SDL_SetLogOutputFunction([NativeTypeName("SDL_LogOutputFunction")] delegate* unmanaged[Cdecl] callback, [NativeTypeName("void*")] IntPtr userdata); - - [NativeTypeName("#define SDL_MAX_LOG_MESSAGE 4096")] - public const int SDL_MAX_LOG_MESSAGE = 4096; } } diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_touch.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_touch.g.cs index c5389e7..b2017fe 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_touch.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_touch.g.cs @@ -59,9 +59,6 @@ namespace SDL public static extern SDL_TouchDeviceType SDL_GetTouchDeviceType(SDL_TouchID touchID); [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern int SDL_GetNumTouchFingers(SDL_TouchID touchID); - - [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern SDL_Finger* SDL_GetTouchFinger(SDL_TouchID touchID, int index); + public static extern SDL_Finger** SDL_GetTouchFingers(SDL_TouchID touchID, int* count); } } diff --git a/SDL3-CS/SDL3/SDL_touch.cs b/SDL3-CS/SDL3/SDL_touch.cs index 8c8ae44..d02076d 100644 --- a/SDL3-CS/SDL3/SDL_touch.cs +++ b/SDL3-CS/SDL3/SDL_touch.cs @@ -27,5 +27,13 @@ namespace SDL var array = SDL_GetTouchDevices(&count); return SDLArray.Create(array, count); } + + [MustDisposeResource] + public static unsafe SDLPointerArray? SDL_GetTouchFingers(SDL_TouchID touchID) + { + int count; + var array = SDL_GetTouchFingers(touchID, &count); + return SDLArray.Create(array, count); + } } }