Fix typos on export name and add missing hint

This commit is contained in:
Mary 2021-03-28 18:18:29 +02:00
parent 43aa299aec
commit ac43b59e57
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@
<Description>libSDL2 bindings for C#</Description> <Description>libSDL2 bindings for C#</Description>
<RootNamespace>SDL2</RootNamespace> <RootNamespace>SDL2</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Version>2.0.14.1</Version> <Version>2.0.14.2</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile> <PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Label="NuGet"> <PropertyGroup Label="NuGet">

View file

@ -630,6 +630,8 @@ namespace SDL2
"SDL_HINT_AUDIO_DEVICE_STREAM_NAME"; "SDL_HINT_AUDIO_DEVICE_STREAM_NAME";
public const string SDL_HINT_PREFERRED_LOCALES = public const string SDL_HINT_PREFERRED_LOCALES =
"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 public enum SDL_HintPriority
{ {
@ -6677,7 +6679,7 @@ namespace SDL2
* Only available in 2.0.14 or higher. * Only available in 2.0.14 or higher.
*/ */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_GameControllerIsSensorEnabled( public static extern int SDL_GameControllerGetSensorData(
IntPtr gamecontroller, IntPtr gamecontroller,
SDL_SensorType type, SDL_SensorType type,
float[] data, float[] data,