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>
<RootNamespace>SDL2</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Version>2.0.14.1</Version>
<Version>2.0.14.2</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>
<PropertyGroup Label="NuGet">

View file

@ -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,