[SDL] Improved documentation of Event size hack
This commit is contained in:
parent
dffabcb94a
commit
52efa3b629
1 changed files with 3 additions and 2 deletions
|
@ -1446,8 +1446,9 @@ namespace OpenTK.Platform.SDL2
|
|||
#endif
|
||||
|
||||
// Ensure the structure is big enough
|
||||
// This hack is necessary, because until we
|
||||
// map all possible events (see above)s
|
||||
// This hack is necessary to ensure compatibility
|
||||
// with different SDL versions, which might have
|
||||
// different sizeof(SDL_Event).
|
||||
[FieldOffset(0)]
|
||||
private unsafe fixed byte reserved[128];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue