Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proper SDL_EventType enum in all SDL_*Events #235

Merged
merged 1 commit into from
Jul 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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