From 842c0499b9e3fe98ca97bd9f7a7ac880c0d46179 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Fri, 2 May 2014 17:39:00 +0200 Subject: [PATCH] [SDL] Corrected SDL_Mouse* event structs --- Source/OpenTK/Platform/SDL2/Sdl2.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2.cs b/Source/OpenTK/Platform/SDL2/Sdl2.cs index 11c8c468..28a348de 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2.cs @@ -1565,8 +1565,8 @@ namespace OpenTK.Platform.SDL2 public UInt32 Which; public Button Button; public State State; + public byte Clicks; byte padding1; - byte padding2; public Int32 X; public Int32 Y; } @@ -1577,10 +1577,7 @@ namespace OpenTK.Platform.SDL2 public uint Timestamp; public uint WindowID; public uint Which; - public State State; - byte padding1; - byte padding2; - byte padding3; + public ButtonFlags State; public Int32 X; public Int32 Y; public Int32 Xrel; @@ -1610,10 +1607,6 @@ namespace OpenTK.Platform.SDL2 } public const uint TouchMouseID = 0xffffffff; - - public static class GL - { - } } struct Rect