From ac43b59e57e076d659285a889f43796c9854e220 Mon Sep 17 00:00:00 2001 From: Mary Date: Sun, 28 Mar 2021 18:18:29 +0200 Subject: [PATCH] Fix typos on export name and add missing hint --- SDL2-CS.csproj | 2 +- src/SDL2.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SDL2-CS.csproj b/SDL2-CS.csproj index e4a91ac..39eb684 100644 --- a/SDL2-CS.csproj +++ b/SDL2-CS.csproj @@ -8,7 +8,7 @@ libSDL2 bindings for C# SDL2 false - 2.0.14.1 + 2.0.14.2 LICENSE diff --git a/src/SDL2.cs b/src/SDL2.cs index 2bdc528..9640e4f 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -630,6 +630,8 @@ namespace SDL2 "SDL_HINT_AUDIO_DEVICE_STREAM_NAME"; public const string SDL_HINT_PREFERRED_LOCALES = "SDL_HINT_PREFERRED_LOCALES"; + public const string SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE = + "SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE"; public enum SDL_HintPriority { @@ -6677,7 +6679,7 @@ namespace SDL2 * Only available in 2.0.14 or higher. */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern int SDL_GameControllerIsSensorEnabled( + public static extern int SDL_GameControllerGetSensorData( IntPtr gamecontroller, SDL_SensorType type, float[] data,