Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SDL_GetTouchName #234

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

Susko3
Copy link
Contributor

@Susko3 Susko3 commented Jul 17, 2022

SDL source: https://github.com/libsdl-org/SDL/blob/580d231822b20b52ce36dfc2918b691cadf5ac84/include/SDL_touch.h#L98-L104.

Uses same convention as SDL_JoystickName etc.:

SDL2-CS/src/SDL2.cs

Lines 6621 to 6631 in dd7503d

/* joystick refers to an SDL_Joystick* */
[DllImport(nativeLibName, EntryPoint = "SDL_JoystickName", CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr INTERNAL_SDL_JoystickName(
IntPtr joystick
);
public static string SDL_JoystickName(IntPtr joystick)
{
return UTF8_ToManaged(
INTERNAL_SDL_JoystickName(joystick)
);
}

@flibitijibibo flibitijibibo merged commit 7d2d6e4 into flibitijibibo:master Jul 17, 2022
@Susko3 Susko3 deleted the add-SDL_GetTouchFinger branch July 17, 2022 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants