diff --git a/External/SDL b/External/SDL index c030e6f..17c4bdd 160000 --- a/External/SDL +++ b/External/SDL @@ -1 +1 @@ -Subproject commit c030e6f782d8641e7bd8c1dc2d58788cab4f2e4d +Subproject commit 17c4bdd754e860f166bdd2090c3d8a346a1a2bba diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_audio.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_audio.g.cs index 81aed9d..95f1b92 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_audio.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_audio.g.cs @@ -205,6 +205,10 @@ public static unsafe partial class SDL3 [return: NativeTypeName("bool")] public static extern SDLBool SDL_ResumeAudioStreamDevice(SDL_AudioStream* stream); + [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + [return: NativeTypeName("bool")] + public static extern SDLBool SDL_AudioStreamDevicePaused(SDL_AudioStream* stream); + [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("bool")] public static extern SDLBool SDL_LockAudioStream(SDL_AudioStream* stream); diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs index dcc7559..c35da6e 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_events.g.cs @@ -115,6 +115,7 @@ public enum SDL_EventType SDL_EVENT_FINGER_DOWN = 0x700, SDL_EVENT_FINGER_UP, SDL_EVENT_FINGER_MOTION, + SDL_EVENT_FINGER_CANCELED, SDL_EVENT_CLIPBOARD_UPDATE = 0x900, SDL_EVENT_DROP_FILE = 0x1000, SDL_EVENT_DROP_TEXT, @@ -903,7 +904,7 @@ public unsafe partial struct SDL_ClipboardEvent public SDLBool owner; [NativeTypeName("Sint32")] - public int n_mime_types; + public int num_mime_types; [NativeTypeName("const char **")] public byte** mime_types; diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_gamepad.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_gamepad.g.cs index dc887e7..d9395c1 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_gamepad.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_gamepad.g.cs @@ -117,12 +117,12 @@ public partial struct SDL_GamepadBinding { public SDL_GamepadBindingType input_type; - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L259_C5")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L265_C5")] public _input_e__Union input; public SDL_GamepadBindingType output_type; - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L279_C5")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L285_C5")] public _output_e__Union output; [StructLayout(LayoutKind.Explicit)] @@ -132,11 +132,11 @@ public partial struct _input_e__Union public int button; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L263_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L269_C9")] public _axis_e__Struct axis; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L270_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L276_C9")] public _hat_e__Struct hat; public partial struct _axis_e__Struct @@ -163,7 +163,7 @@ public partial struct _output_e__Union public SDL_GamepadButton button; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_SDL_gamepad_L283_C9")] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L289_C9")] public _axis_e__Struct axis; public partial struct _axis_e__Struct diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_gpu.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_gpu.g.cs index d7288ec..3c6ff62 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_gpu.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_gpu.g.cs @@ -1498,22 +1498,43 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_PROP_GPU_DEVICE_CREATE_D3D12_SEMANTIC_NAME_STRING \"SDL.gpu.device.create.d3d12.semantic\"")] public static ReadOnlySpan SDL_PROP_GPU_DEVICE_CREATE_D3D12_SEMANTIC_NAME_STRING => "SDL.gpu.device.create.d3d12.semantic"u8; - [NativeTypeName("#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_R_FLOAT \"SDL.gpu.createtexture.d3d12.clear.r\"")] - public static ReadOnlySpan SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_R_FLOAT => "SDL.gpu.createtexture.d3d12.clear.r"u8; + [NativeTypeName("#define SDL_PROP_GPU_COMPUTEPIPELINE_CREATE_NAME_STRING \"SDL.gpu.computepipeline.create.name\"")] + public static ReadOnlySpan SDL_PROP_GPU_COMPUTEPIPELINE_CREATE_NAME_STRING => "SDL.gpu.computepipeline.create.name"u8; - [NativeTypeName("#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_G_FLOAT \"SDL.gpu.createtexture.d3d12.clear.g\"")] - public static ReadOnlySpan SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_G_FLOAT => "SDL.gpu.createtexture.d3d12.clear.g"u8; + [NativeTypeName("#define SDL_PROP_GPU_GRAPHICSPIPELINE_CREATE_NAME_STRING \"SDL.gpu.graphicspipeline.create.name\"")] + public static ReadOnlySpan SDL_PROP_GPU_GRAPHICSPIPELINE_CREATE_NAME_STRING => "SDL.gpu.graphicspipeline.create.name"u8; - [NativeTypeName("#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_B_FLOAT \"SDL.gpu.createtexture.d3d12.clear.b\"")] - public static ReadOnlySpan SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_B_FLOAT => "SDL.gpu.createtexture.d3d12.clear.b"u8; + [NativeTypeName("#define SDL_PROP_GPU_SAMPLER_CREATE_NAME_STRING \"SDL.gpu.sampler.create.name\"")] + public static ReadOnlySpan SDL_PROP_GPU_SAMPLER_CREATE_NAME_STRING => "SDL.gpu.sampler.create.name"u8; - [NativeTypeName("#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_A_FLOAT \"SDL.gpu.createtexture.d3d12.clear.a\"")] - public static ReadOnlySpan SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_A_FLOAT => "SDL.gpu.createtexture.d3d12.clear.a"u8; + [NativeTypeName("#define SDL_PROP_GPU_SHADER_CREATE_NAME_STRING \"SDL.gpu.shader.create.name\"")] + public static ReadOnlySpan SDL_PROP_GPU_SHADER_CREATE_NAME_STRING => "SDL.gpu.shader.create.name"u8; - [NativeTypeName("#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_DEPTH_FLOAT \"SDL.gpu.createtexture.d3d12.clear.depth\"")] - public static ReadOnlySpan SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_DEPTH_FLOAT => "SDL.gpu.createtexture.d3d12.clear.depth"u8; + [NativeTypeName("#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_R_FLOAT \"SDL.gpu.texture.create.d3d12.clear.r\"")] + public static ReadOnlySpan SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_R_FLOAT => "SDL.gpu.texture.create.d3d12.clear.r"u8; - [NativeTypeName("#define SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_STENCIL_UINT8 \"SDL.gpu.createtexture.d3d12.clear.stencil\"")] - public static ReadOnlySpan SDL_PROP_GPU_CREATETEXTURE_D3D12_CLEAR_STENCIL_UINT8 => "SDL.gpu.createtexture.d3d12.clear.stencil"u8; + [NativeTypeName("#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_G_FLOAT \"SDL.gpu.texture.create.d3d12.clear.g\"")] + public static ReadOnlySpan SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_G_FLOAT => "SDL.gpu.texture.create.d3d12.clear.g"u8; + + [NativeTypeName("#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_B_FLOAT \"SDL.gpu.texture.create.d3d12.clear.b\"")] + public static ReadOnlySpan SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_B_FLOAT => "SDL.gpu.texture.create.d3d12.clear.b"u8; + + [NativeTypeName("#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_A_FLOAT \"SDL.gpu.texture.create.d3d12.clear.a\"")] + public static ReadOnlySpan SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_A_FLOAT => "SDL.gpu.texture.create.d3d12.clear.a"u8; + + [NativeTypeName("#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_DEPTH_FLOAT \"SDL.gpu.texture.create.d3d12.clear.depth\"")] + public static ReadOnlySpan SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_DEPTH_FLOAT => "SDL.gpu.texture.create.d3d12.clear.depth"u8; + + [NativeTypeName("#define SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_STENCIL_UINT8 \"SDL.gpu.texture.create.d3d12.clear.stencil\"")] + public static ReadOnlySpan SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_STENCIL_UINT8 => "SDL.gpu.texture.create.d3d12.clear.stencil"u8; + + [NativeTypeName("#define SDL_PROP_GPU_TEXTURE_CREATE_NAME_STRING \"SDL.gpu.texture.create.name\"")] + public static ReadOnlySpan SDL_PROP_GPU_TEXTURE_CREATE_NAME_STRING => "SDL.gpu.texture.create.name"u8; + + [NativeTypeName("#define SDL_PROP_GPU_BUFFER_CREATE_NAME_STRING \"SDL.gpu.buffer.create.name\"")] + public static ReadOnlySpan SDL_PROP_GPU_BUFFER_CREATE_NAME_STRING => "SDL.gpu.buffer.create.name"u8; + + [NativeTypeName("#define SDL_PROP_GPU_TRANSFERBUFFER_CREATE_NAME_STRING \"SDL.gpu.transferbuffer.create.name\"")] + public static ReadOnlySpan SDL_PROP_GPU_TRANSFERBUFFER_CREATE_NAME_STRING => "SDL.gpu.transferbuffer.create.name"u8; } } diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_hints.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_hints.g.cs index 8756451..8cc24ea 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_hints.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_hints.g.cs @@ -268,6 +268,9 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_HINT_JOYSTICK_DEVICE \"SDL_JOYSTICK_DEVICE\"")] public static ReadOnlySpan SDL_HINT_JOYSTICK_DEVICE => "SDL_JOYSTICK_DEVICE"u8; + [NativeTypeName("#define SDL_HINT_JOYSTICK_ENHANCED_REPORTS \"SDL_JOYSTICK_ENHANCED_REPORTS\"")] + public static ReadOnlySpan SDL_HINT_JOYSTICK_ENHANCED_REPORTS => "SDL_JOYSTICK_ENHANCED_REPORTS"u8; + [NativeTypeName("#define SDL_HINT_JOYSTICK_FLIGHTSTICK_DEVICES \"SDL_JOYSTICK_FLIGHTSTICK_DEVICES\"")] public static ReadOnlySpan SDL_HINT_JOYSTICK_FLIGHTSTICK_DEVICES => "SDL_JOYSTICK_FLIGHTSTICK_DEVICES"u8; @@ -319,18 +322,12 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL \"SDL_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL\"")] public static ReadOnlySpan SDL_HINT_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL => "SDL_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL"u8; - [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS4_RUMBLE\"")] - public static ReadOnlySpan SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE => "SDL_JOYSTICK_HIDAPI_PS4_RUMBLE"u8; - [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS5 \"SDL_JOYSTICK_HIDAPI_PS5\"")] public static ReadOnlySpan SDL_HINT_JOYSTICK_HIDAPI_PS5 => "SDL_JOYSTICK_HIDAPI_PS5"u8; [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED \"SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED\"")] public static ReadOnlySpan SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED => "SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED"u8; - [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS5_RUMBLE\"")] - public static ReadOnlySpan SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE => "SDL_JOYSTICK_HIDAPI_PS5_RUMBLE"u8; - [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_SHIELD \"SDL_JOYSTICK_HIDAPI_SHIELD\"")] public static ReadOnlySpan SDL_HINT_JOYSTICK_HIDAPI_SHIELD => "SDL_JOYSTICK_HIDAPI_SHIELD"u8; @@ -454,6 +451,9 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH \"SDL_MAC_OPENGL_ASYNC_DISPATCH\"")] public static ReadOnlySpan SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH => "SDL_MAC_OPENGL_ASYNC_DISPATCH"u8; + [NativeTypeName("#define SDL_HINT_MAC_OPTION_AS_ALT \"SDL_MAC_OPTION_AS_ALT\"")] + public static ReadOnlySpan SDL_HINT_MAC_OPTION_AS_ALT => "SDL_MAC_OPTION_AS_ALT"u8; + [NativeTypeName("#define SDL_HINT_MAC_SCROLL_MOMENTUM \"SDL_MAC_SCROLL_MOMENTUM\"")] public static ReadOnlySpan SDL_HINT_MAC_SCROLL_MOMENTUM => "SDL_MAC_SCROLL_MOMENTUM"u8; @@ -508,6 +508,9 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_HINT_OPENGL_LIBRARY \"SDL_OPENGL_LIBRARY\"")] public static ReadOnlySpan SDL_HINT_OPENGL_LIBRARY => "SDL_OPENGL_LIBRARY"u8; + [NativeTypeName("#define SDL_HINT_EGL_LIBRARY \"SDL_EGL_LIBRARY\"")] + public static ReadOnlySpan SDL_HINT_EGL_LIBRARY => "SDL_EGL_LIBRARY"u8; + [NativeTypeName("#define SDL_HINT_OPENGL_ES_DRIVER \"SDL_OPENGL_ES_DRIVER\"")] public static ReadOnlySpan SDL_HINT_OPENGL_ES_DRIVER => "SDL_OPENGL_ES_DRIVER"u8; @@ -619,6 +622,9 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES \"SDL_VIDEO_MAC_FULLSCREEN_SPACES\"")] public static ReadOnlySpan SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES => "SDL_VIDEO_MAC_FULLSCREEN_SPACES"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY \"SDL_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY\"")] + public static ReadOnlySpan SDL_HINT_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY => "SDL_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY"u8; + [NativeTypeName("#define SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS \"SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS\"")] public static ReadOnlySpan SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS => "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"u8; @@ -762,5 +768,11 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_HINT_ASSERT \"SDL_ASSERT\"")] public static ReadOnlySpan SDL_HINT_ASSERT => "SDL_ASSERT"u8; + + [NativeTypeName("#define SDL_HINT_PEN_MOUSE_EVENTS \"SDL_PEN_MOUSE_EVENTS\"")] + public static ReadOnlySpan SDL_HINT_PEN_MOUSE_EVENTS => "SDL_PEN_MOUSE_EVENTS"u8; + + [NativeTypeName("#define SDL_HINT_PEN_TOUCH_EVENTS \"SDL_PEN_TOUCH_EVENTS\"")] + public static ReadOnlySpan SDL_HINT_PEN_TOUCH_EVENTS => "SDL_PEN_TOUCH_EVENTS"u8; } } diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_keycode.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_keycode.g.cs index f6136de..9371ea1 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_keycode.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_keycode.g.cs @@ -27,7 +27,10 @@ namespace SDL { public static partial class SDL3 { - [NativeTypeName("#define SDLK_SCANCODE_MASK (1u<<30)")] + [NativeTypeName("#define SDLK_EXTENDED_MASK (1u << 29)")] + public const uint SDLK_EXTENDED_MASK = (1U << 29); + + [NativeTypeName("#define SDLK_SCANCODE_MASK (1u << 30)")] public const uint SDLK_SCANCODE_MASK = (1U << 30); [NativeTypeName("#define SDLK_UNKNOWN 0x00000000u")] @@ -777,6 +780,27 @@ public static partial class SDL3 [NativeTypeName("#define SDLK_ENDCALL 0x40000122u")] public const uint SDLK_ENDCALL = 0x40000122U; + [NativeTypeName("#define SDLK_LEFT_TAB 0x20000001u")] + public const uint SDLK_LEFT_TAB = 0x20000001U; + + [NativeTypeName("#define SDLK_LEVEL5_SHIFT 0x20000002u")] + public const uint SDLK_LEVEL5_SHIFT = 0x20000002U; + + [NativeTypeName("#define SDLK_MULTI_KEY_COMPOSE 0x20000003u")] + public const uint SDLK_MULTI_KEY_COMPOSE = 0x20000003U; + + [NativeTypeName("#define SDLK_LMETA 0x20000004u")] + public const uint SDLK_LMETA = 0x20000004U; + + [NativeTypeName("#define SDLK_RMETA 0x20000005u")] + public const uint SDLK_RMETA = 0x20000005U; + + [NativeTypeName("#define SDLK_LHYPER 0x20000006u")] + public const uint SDLK_LHYPER = 0x20000006U; + + [NativeTypeName("#define SDLK_RHYPER 0x20000007u")] + public const uint SDLK_RHYPER = 0x20000007U; + [NativeTypeName("#define SDL_KMOD_NONE 0x0000u")] public const uint SDL_KMOD_NONE = 0x0000U; @@ -786,6 +810,9 @@ public static partial class SDL3 [NativeTypeName("#define SDL_KMOD_RSHIFT 0x0002u")] public const uint SDL_KMOD_RSHIFT = 0x0002U; + [NativeTypeName("#define SDL_KMOD_LEVEL5 0x0004u")] + public const uint SDL_KMOD_LEVEL5 = 0x0004U; + [NativeTypeName("#define SDL_KMOD_LCTRL 0x0040u")] public const uint SDL_KMOD_LCTRL = 0x0040U; diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_pen.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_pen.g.cs index 0d7e382..23abd3c 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_pen.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_pen.g.cs @@ -39,6 +39,12 @@ public enum SDL_PenAxis public static partial class SDL3 { + [NativeTypeName("#define SDL_PEN_MOUSEID ((SDL_MouseID)-2)")] + public const SDL_MouseID SDL_PEN_MOUSEID = ((SDL_MouseID)(-2)); + + [NativeTypeName("#define SDL_PEN_TOUCHID ((SDL_TouchID)-2)")] + public const SDL_TouchID SDL_PEN_TOUCHID = ((SDL_TouchID)(-2)); + [NativeTypeName("#define SDL_PEN_INPUT_DOWN (1u << 0)")] public const uint SDL_PEN_INPUT_DOWN = (1U << 0); diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_tray.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_tray.g.cs index 386d48b..36f69cd 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_tray.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_tray.g.cs @@ -97,6 +97,9 @@ public static unsafe partial class SDL3 [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void SDL_SetTrayEntryCallback(SDL_TrayEntry* entry, [NativeTypeName("SDL_TrayCallback")] delegate* unmanaged[Cdecl] callback, [NativeTypeName("void*")] IntPtr userdata); + [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void SDL_ClickTrayEntry(SDL_TrayEntry* entry); + [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void SDL_DestroyTray(SDL_Tray* tray); @@ -109,6 +112,9 @@ public static unsafe partial class SDL3 [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern SDL_Tray* SDL_GetTrayMenuParentTray(SDL_TrayMenu* menu); + [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern void SDL_UpdateTrays(); + [NativeTypeName("#define SDL_TRAYENTRY_BUTTON 0x00000001u")] public const uint SDL_TRAYENTRY_BUTTON = 0x00000001U; diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_version.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_version.g.cs index cd9e5dc..efa5f88 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_version.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_version.g.cs @@ -39,10 +39,10 @@ public static unsafe partial class SDL3 [NativeTypeName("#define SDL_MAJOR_VERSION 3")] public const int SDL_MAJOR_VERSION = 3; - [NativeTypeName("#define SDL_MINOR_VERSION 1")] - public const int SDL_MINOR_VERSION = 1; + [NativeTypeName("#define SDL_MINOR_VERSION 2")] + public const int SDL_MINOR_VERSION = 2; - [NativeTypeName("#define SDL_MICRO_VERSION 7")] - public const int SDL_MICRO_VERSION = 7; + [NativeTypeName("#define SDL_MICRO_VERSION 1")] + public const int SDL_MICRO_VERSION = 1; } } diff --git a/SDL3-CS/SDL3/SDL_keycode.cs b/SDL3-CS/SDL3/SDL_keycode.cs index 6dd3dea..7adf7f2 100644 --- a/SDL3-CS/SDL3/SDL_keycode.cs +++ b/SDL3-CS/SDL3/SDL_keycode.cs @@ -8,6 +8,7 @@ namespace SDL [Typedef] public enum SDL_Keycode : UInt32 { + SDLK_EXTENDED_MASK = SDL3.SDLK_EXTENDED_MASK, SDLK_SCANCODE_MASK = SDL3.SDLK_SCANCODE_MASK, SDLK_UNKNOWN = SDL3.SDLK_UNKNOWN, SDLK_RETURN = SDL3.SDLK_RETURN, @@ -258,6 +259,13 @@ public enum SDL_Keycode : UInt32 SDLK_SOFTRIGHT = SDL3.SDLK_SOFTRIGHT, SDLK_CALL = SDL3.SDLK_CALL, SDLK_ENDCALL = SDL3.SDLK_ENDCALL, + SDLK_LEFT_TAB = SDL3.SDLK_LEFT_TAB, + SDLK_LEVEL5_SHIFT = SDL3.SDLK_LEVEL5_SHIFT, + SDLK_MULTI_KEY_COMPOSE = SDL3.SDLK_MULTI_KEY_COMPOSE, + SDLK_LMETA = SDL3.SDLK_LMETA, + SDLK_RMETA = SDL3.SDLK_RMETA, + SDLK_LHYPER = SDL3.SDLK_LHYPER, + SDLK_RHYPER = SDL3.SDLK_RHYPER, } [Flags] @@ -267,6 +275,7 @@ public enum SDL_Keymod : UInt16 SDL_KMOD_NONE = (UInt16)SDL3.SDL_KMOD_NONE, SDL_KMOD_LSHIFT = (UInt16)SDL3.SDL_KMOD_LSHIFT, SDL_KMOD_RSHIFT = (UInt16)SDL3.SDL_KMOD_RSHIFT, + SDL_KMOD_LEVEL5 = (UInt16)SDL3.SDL_KMOD_LEVEL5, SDL_KMOD_LCTRL = (UInt16)SDL3.SDL_KMOD_LCTRL, SDL_KMOD_RCTRL = (UInt16)SDL3.SDL_KMOD_RCTRL, SDL_KMOD_LALT = (UInt16)SDL3.SDL_KMOD_LALT,