mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-09 14:15:39 +00:00
Add padding to SDL_Event
This commit is contained in:
parent
f4d713f651
commit
b253a810e0
|
@ -4822,7 +4822,7 @@ namespace SDL2
|
||||||
/* General event structure */
|
/* General event structure */
|
||||||
// C# doesn't do unions, so we do this ugly thing. */
|
// C# doesn't do unions, so we do this ugly thing. */
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
[StructLayout(LayoutKind.Explicit)]
|
||||||
public struct SDL_Event
|
public unsafe struct SDL_Event
|
||||||
{
|
{
|
||||||
[FieldOffset(0)]
|
[FieldOffset(0)]
|
||||||
public SDL_EventType type;
|
public SDL_EventType type;
|
||||||
|
@ -4878,6 +4878,8 @@ namespace SDL2
|
||||||
public SDL_DollarGestureEvent dgesture;
|
public SDL_DollarGestureEvent dgesture;
|
||||||
[FieldOffset(0)]
|
[FieldOffset(0)]
|
||||||
public SDL_DropEvent drop;
|
public SDL_DropEvent drop;
|
||||||
|
[FieldOffset(0)]
|
||||||
|
private fixed byte padding[56];
|
||||||
}
|
}
|
||||||
|
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
|
|
Loading…
Reference in a new issue