From b986c6a74c8d32185094d75db26051cd8fe65715 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Jul 2023 02:30:14 +0000 Subject: [PATCH 1/2] Bump ext/SDL from `8ba850b` to `1903d7b` Bumps [ext/SDL](https://github.com/libsdl-org/SDL) from `8ba850b` to `1903d7b`. - [Release notes](https://github.com/libsdl-org/SDL/releases) - [Commits](https://github.com/libsdl-org/SDL/compare/8ba850bef23acff4ea68b675ffe45b3f044f25fe...1903d7b1bf6c73ef23e4d6934c9fec5246dd0b2e) --- updated-dependencies: - dependency-name: ext/SDL dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- ext/SDL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/SDL b/ext/SDL index 8ba850b..1903d7b 160000 --- a/ext/SDL +++ b/ext/SDL @@ -1 +1 @@ -Subproject commit 8ba850bef23acff4ea68b675ffe45b3f044f25fe +Subproject commit 1903d7b1bf6c73ef23e4d6934c9fec5246dd0b2e From bdcbbffa3b0357e887f24b84d20cc99830f5f4a5 Mon Sep 17 00:00:00 2001 From: lithiumtoast <519592+lithiumtoast@users.noreply.github.com> Date: Wed, 12 Jul 2023 02:35:24 +0000 Subject: [PATCH 2/2] Update C# bindings --- src/cs/production/SDL/Generated/AssemblyAttributes.gen.cs | 4 ++-- src/cs/production/SDL/Generated/SDL.gen.cs | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/cs/production/SDL/Generated/AssemblyAttributes.gen.cs b/src/cs/production/SDL/Generated/AssemblyAttributes.gen.cs index 597a619..e8af34b 100644 --- a/src/cs/production/SDL/Generated/AssemblyAttributes.gen.cs +++ b/src/cs/production/SDL/Generated/AssemblyAttributes.gen.cs @@ -1,7 +1,7 @@ // To disable generating this file set `isEnabledGenerateAssemblyAttributes` to `false` in the config file for generating C# code. // -// This code was generated by the following tool on 2023-07-11 03:47:18 GMT+00:00: -// https://github.com/bottlenoselabs/c2cs (v6.0.3.0) +// This code was generated by the following tool on 2023-07-12 02:33:01 GMT+00:00: +// https://github.com/bottlenoselabs/c2cs (v6.0.7.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. // diff --git a/src/cs/production/SDL/Generated/SDL.gen.cs b/src/cs/production/SDL/Generated/SDL.gen.cs index 1e6e60c..69e00ac 100644 --- a/src/cs/production/SDL/Generated/SDL.gen.cs +++ b/src/cs/production/SDL/Generated/SDL.gen.cs @@ -1,7 +1,7 @@ // -// This code was generated by the following tool on 2023-07-11 03:47:18 GMT+00:00: -// https://github.com/bottlenoselabs/c2cs (v6.0.3.0) +// This code was generated by the following tool on 2023-07-12 02:33:01 GMT+00:00: +// https://github.com/bottlenoselabs/c2cs (v6.0.7.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. // @@ -811,6 +811,10 @@ public static unsafe partial class SDL [DllImport(LibraryName, EntryPoint = "SDL_GetGamepadPlayerIndex", CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_GetGamepadPlayerIndex(SDL_Gamepad* gamepad); + [CNode(Kind = "Function")] + [DllImport(LibraryName, EntryPoint = "SDL_GetGamepadPowerLevel", CallingConvention = CallingConvention.Cdecl)] + public static extern SDL_JoystickPowerLevel SDL_GetGamepadPowerLevel(SDL_Gamepad* gamepad); + [CNode(Kind = "Function")] [DllImport(LibraryName, EntryPoint = "SDL_GetGamepadProduct", CallingConvention = CallingConvention.Cdecl)] public static extern ushort SDL_GetGamepadProduct(SDL_Gamepad* gamepad);