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

Bump ext/SDL from 5782007 to 8adab0b #414

Merged
merged 2 commits into from
Jul 23, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ext/SDL
Submodule SDL updated 116 files
6 changes: 3 additions & 3 deletions src/cs/production/SDL/Generated/AssemblyAttributes.gen.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// To disable generating this file set `isEnabledGenerateAssemblyAttributes` to `false` in the config file for generating C# code.
// <auto-generated>
// This code was generated by the following tool on 2023-07-17 00:34:13 GMT+00:00:
// https://github.com/bottlenoselabs/c2cs (v6.0.7.0)
// This code was generated by the following tool on 2023-07-23 14:02:59 GMT+00:00:
// https://github.com/bottlenoselabs/c2cs (v6.1.2.0)
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
Expand All @@ -11,7 +11,7 @@
#nullable enable
#pragma warning disable CS1591
#pragma warning disable CS8981
global using bottlenoselabs.C2CS.Runtime;
using bottlenoselabs.C2CS.Runtime;
using System;
using System.Collections.Generic;
using System.Globalization;
Expand Down
67 changes: 51 additions & 16 deletions src/cs/production/SDL/Generated/SDL.gen.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

// <auto-generated>
// This code was generated by the following tool on 2023-07-17 00:34:13 GMT+00:00:
// https://github.com/bottlenoselabs/c2cs (v6.0.7.0)
// This code was generated by the following tool on 2023-07-23 14:02:59 GMT+00:00:
// https://github.com/bottlenoselabs/c2cs (v6.1.2.0)
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
Expand All @@ -11,7 +11,7 @@
#nullable enable
#pragma warning disable CS1591
#pragma warning disable CS8981
global using bottlenoselabs.C2CS.Runtime;
using bottlenoselabs.C2CS.Runtime;
using System;
using System.Collections.Generic;
using System.Globalization;
Expand All @@ -35,9 +35,13 @@ public static unsafe partial class SDL
[DllImport(LibraryName, EntryPoint = "SDL_AddGamepadMapping", CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_AddGamepadMapping(CString mapping);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_AddGamepadMappingsFromFile", CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_AddGamepadMappingsFromFile(CString file);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_AddGamepadMappingsFromRW", CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_AddGamepadMappingsFromRW(SDL_RWops* rw, int freerw);
public static extern int SDL_AddGamepadMappingsFromRW(SDL_RWops* src, int freesrc);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_AddHintCallback", CallingConvention = CallingConvention.Cdecl)]
Expand Down Expand Up @@ -835,6 +839,10 @@ public static unsafe partial class SDL
[DllImport(LibraryName, EntryPoint = "SDL_GetGamepadStringForButton", CallingConvention = CallingConvention.Cdecl)]
public static extern CString SDL_GetGamepadStringForButton(SDL_GamepadButton button);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_GetGamepadStringForType", CallingConvention = CallingConvention.Cdecl)]
public static extern CString SDL_GetGamepadStringForType(SDL_GamepadType type);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_GetGamepadTouchpadFinger", CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_GetGamepadTouchpadFinger(SDL_Gamepad* gamepad, int touchpad, int finger, byte* state, float* x, float* y, float* pressure);
Expand All @@ -843,6 +851,10 @@ public static unsafe partial class SDL
[DllImport(LibraryName, EntryPoint = "SDL_GetGamepadType", CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_GamepadType SDL_GetGamepadType(SDL_Gamepad* gamepad);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_GetGamepadTypeFromString", CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_GamepadType SDL_GetGamepadTypeFromString(CString str);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_GetGamepadVendor", CallingConvention = CallingConvention.Cdecl)]
public static extern ushort SDL_GetGamepadVendor(SDL_Gamepad* gamepad);
Expand Down Expand Up @@ -1143,6 +1155,14 @@ public static unsafe partial class SDL
[DllImport(LibraryName, EntryPoint = "SDL_GetRGBA", CallingConvention = CallingConvention.Cdecl)]
public static extern void SDL_GetRGBA(uint pixel, SDL_PixelFormat* format, byte* r, byte* g, byte* b, byte* a);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_GetRealGamepadInstanceType", CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_GamepadType SDL_GetRealGamepadInstanceType(SDL_JoystickID instance_id);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_GetRealGamepadType", CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_GamepadType SDL_GetRealGamepadType(SDL_Gamepad* gamepad);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_GetRectAndLineIntersection", CallingConvention = CallingConvention.Cdecl)]
public static extern CBool SDL_GetRectAndLineIntersection(SDL_Rect* rect, int* X1, int* Y1, int* X2, int* Y2);
Expand Down Expand Up @@ -2087,6 +2107,10 @@ public static unsafe partial class SDL
[DllImport(LibraryName, EntryPoint = "SDL_RegisterEvents", CallingConvention = CallingConvention.Cdecl)]
public static extern uint SDL_RegisterEvents(int numevents);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_ReloadGamepadMappings", CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_ReloadGamepadMappings();

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_RemoveTimer", CallingConvention = CallingConvention.Cdecl)]
public static extern CBool SDL_RemoveTimer(SDL_TimerID id);
Expand Down Expand Up @@ -3171,6 +3195,10 @@ public static unsafe partial class SDL
[DllImport(LibraryName, EntryPoint = "SDL_strndup", CallingConvention = CallingConvention.Cdecl)]
public static extern CString SDL_strndup(CString str, ulong maxlen);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_strnlen", CallingConvention = CallingConvention.Cdecl)]
public static extern ulong SDL_strnlen(CString str, ulong maxlen);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_strrchr", CallingConvention = CallingConvention.Cdecl)]
public static extern CString SDL_strrchr(CString str, int c);
Expand Down Expand Up @@ -3299,6 +3327,10 @@ public static unsafe partial class SDL
[DllImport(LibraryName, EntryPoint = "SDL_wcsncmp", CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_wcsncmp(CStringWide str1, CStringWide str2, ulong maxlen);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_wcsnlen", CallingConvention = CallingConvention.Cdecl)]
public static extern ulong SDL_wcsnlen(CStringWide wstr, ulong maxlen);

[CNode(Kind = "Function")]
[DllImport(LibraryName, EntryPoint = "SDL_wcsstr", CallingConvention = CallingConvention.Cdecl)]
public static extern CStringWide SDL_wcsstr(CStringWide haystack, CStringWide needle);
Expand Down Expand Up @@ -5541,9 +5573,10 @@ public enum SDL_EventType : int
SDL_EVENT_WINDOW_ICCPROF_CHANGED = 530,
SDL_EVENT_WINDOW_DISPLAY_CHANGED = 531,
SDL_EVENT_WINDOW_DISPLAY_SCALE_CHANGED = 532,
SDL_EVENT_WINDOW_DESTROYED = 533,
SDL_EVENT_WINDOW_OCCLUDED = 533,
SDL_EVENT_WINDOW_DESTROYED = 534,
SDL_EVENT_WINDOW_FIRST = 514,
SDL_EVENT_WINDOW_LAST = 533,
SDL_EVENT_WINDOW_LAST = 534,
SDL_EVENT_KEY_DOWN = 768,
SDL_EVENT_KEY_UP = 769,
SDL_EVENT_TEXT_EDITING = 770,
Expand Down Expand Up @@ -5725,15 +5758,17 @@ public enum SDL_GamepadButton : int
public enum SDL_GamepadType : int
{
SDL_GAMEPAD_TYPE_UNKNOWN = 0,
SDL_GAMEPAD_TYPE_XBOX360 = 1,
SDL_GAMEPAD_TYPE_XBOXONE = 2,
SDL_GAMEPAD_TYPE_PS3 = 3,
SDL_GAMEPAD_TYPE_PS4 = 4,
SDL_GAMEPAD_TYPE_PS5 = 5,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO = 6,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_LEFT = 7,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT = 8,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR = 9
SDL_GAMEPAD_TYPE_STANDARD = 1,
SDL_GAMEPAD_TYPE_XBOX360 = 2,
SDL_GAMEPAD_TYPE_XBOXONE = 3,
SDL_GAMEPAD_TYPE_PS3 = 4,
SDL_GAMEPAD_TYPE_PS4 = 5,
SDL_GAMEPAD_TYPE_PS5 = 6,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO = 7,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_LEFT = 8,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT = 9,
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR = 10,
SDL_GAMEPAD_TYPE_MAX = 11
}

[CNode(Kind = "Enum")]
Expand Down Expand Up @@ -6616,6 +6651,7 @@ public enum SDL_WindowFlags : int
{
SDL_WINDOW_FULLSCREEN = 1,
SDL_WINDOW_OPENGL = 2,
SDL_WINDOW_OCCLUDED = 4,
SDL_WINDOW_HIDDEN = 8,
SDL_WINDOW_BORDERLESS = 16,
SDL_WINDOW_RESIZABLE = 32,
Expand Down Expand Up @@ -8139,4 +8175,3 @@ public struct SDL_realloc_func

#endregion
}