Skip to content

Commit

Permalink
Use proper SDL_EventType enum in SDL_*Events
Browse files Browse the repository at this point in the history
  • Loading branch information
Susko3 authored and flibitijibibo committed Jul 30, 2022
1 parent 7d2d6e4 commit 443a357
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/SDL2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5222,7 +5222,7 @@ public struct SDL_ControllerDeviceEvent
[StructLayout(LayoutKind.Sequential)]
public struct SDL_ControllerTouchpadEvent
{
public UInt32 type;
public SDL_EventType type;
public UInt32 timestamp;
public Int32 which; /* SDL_JoystickID */
public Int32 touchpad;
Expand All @@ -5236,7 +5236,7 @@ public struct SDL_ControllerTouchpadEvent
[StructLayout(LayoutKind.Sequential)]
public struct SDL_ControllerSensorEvent
{
public UInt32 type;
public SDL_EventType type;
public UInt32 timestamp;
public Int32 which; /* SDL_JoystickID */
public Int32 sensor;
Expand All @@ -5251,7 +5251,7 @@ public struct SDL_ControllerSensorEvent
[StructLayout(LayoutKind.Sequential)]
public struct SDL_AudioDeviceEvent
{
public UInt32 type;
public SDL_EventType type;
public UInt32 timestamp;
public UInt32 which;
public byte iscapture;
Expand All @@ -5264,7 +5264,7 @@ public struct SDL_AudioDeviceEvent
[StructLayout(LayoutKind.Sequential)]
public struct SDL_TouchFingerEvent
{
public UInt32 type;
public SDL_EventType type;
public UInt32 timestamp;
public Int64 touchId; // SDL_TouchID
public Int64 fingerId; // SDL_GestureID
Expand All @@ -5279,7 +5279,7 @@ public struct SDL_TouchFingerEvent
[StructLayout(LayoutKind.Sequential)]
public struct SDL_MultiGestureEvent
{
public UInt32 type;
public SDL_EventType type;
public UInt32 timestamp;
public Int64 touchId; // SDL_TouchID
public float dTheta;
Expand All @@ -5293,7 +5293,7 @@ public struct SDL_MultiGestureEvent
[StructLayout(LayoutKind.Sequential)]
public struct SDL_DollarGestureEvent
{
public UInt32 type;
public SDL_EventType type;
public UInt32 timestamp;
public Int64 touchId; // SDL_TouchID
public Int64 gestureId; // SDL_GestureID
Expand Down Expand Up @@ -5341,7 +5341,7 @@ public struct SDL_QuitEvent
[StructLayout(LayoutKind.Sequential)]
public struct SDL_UserEvent
{
public UInt32 type;
public SDL_EventType type;
public UInt32 timestamp;
public UInt32 windowID;
public Int32 code;
Expand Down

0 comments on commit 443a357

Please sign in to comment.