mirror of https://github.com/ppy/SDL3-CS.git
Regenerate SDL3 bindings
Includes changes up to commit:a2eb2697a370ce808c09is manually excluded to keep SDL_Keycode sane.
This commit is contained in:
parent
7b24554969
commit
d35c803958
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]<IntPtr, SDL_LogCategory, SDL_LogPriority, byte*, void> callback, [NativeTypeName("void*")] IntPtr userdata);
|
||||
|
||||
[NativeTypeName("#define SDL_MAX_LOG_MESSAGE 4096")]
|
||||
public const int SDL_MAX_LOG_MESSAGE = 4096;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,5 +27,13 @@ namespace SDL
|
|||
var array = SDL_GetTouchDevices(&count);
|
||||
return SDLArray.Create(array, count);
|
||||
}
|
||||
|
||||
[MustDisposeResource]
|
||||
public static unsafe SDLPointerArray<SDL_Finger>? SDL_GetTouchFingers(SDL_TouchID touchID)
|
||||
{
|
||||
int count;
|
||||
var array = SDL_GetTouchFingers(touchID, &count);
|
||||
return SDLArray.Create(array, count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue