mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-22 23:45:37 +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 */
|
||||
// C# doesn't do unions, so we do this ugly thing. */
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public struct SDL_Event
|
||||
public unsafe struct SDL_Event
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public SDL_EventType type;
|
||||
|
@ -4878,6 +4878,8 @@ namespace SDL2
|
|||
public SDL_DollarGestureEvent dgesture;
|
||||
[FieldOffset(0)]
|
||||
public SDL_DropEvent drop;
|
||||
[FieldOffset(0)]
|
||||
private fixed byte padding[56];
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
|
|
Loading…
Reference in a new issue