Skip to content

Commit

Permalink
Add SDL_GetTouchName
Browse files Browse the repository at this point in the history
  • Loading branch information
Susko3 authored and flibitijibibo committed Jul 17, 2022
1 parent dd7503d commit 7d2d6e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/SDL2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6508,6 +6508,16 @@ public enum SDL_TouchDeviceType
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_TouchDeviceType SDL_GetTouchDeviceType(Int64 touchID);

/* Only available in 2.0.22 or higher. */
[DllImport(nativeLibName, EntryPoint = "SDL_GetTouchName", CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr INTERNAL_SDL_GetTouchName(int index);

/* Only available in 2.0.22 or higher. */
public static string SDL_GetTouchName(int index)
{
return UTF8_ToManaged(INTERNAL_SDL_GetTouchName(index));
}

#endregion

#region SDL_joystick.h
Expand Down

0 comments on commit 7d2d6e4

Please sign in to comment.