Skip to content

Commit

Permalink
Adding a string method for OpenURL and SetGamepadMappings (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrScautHD committed Aug 4, 2023
1 parent 7e0866c commit 083a776
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Raylib-cs/types/Raylib.Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ public static void SetClipboardText(string text)
using var str1 = text.ToUTF8Buffer();
SetClipboardText(str1.AsPointer());
}

/// <summary>Open URL with default system browser (if available)</summary>
public static void OpenURL(string url)
{
using var str1 = url.ToUTF8Buffer();
OpenURL(str1.AsPointer());
}

/// <summary>Set internal gamepad mappings (SDL_GameControllerDB)</summary>
public static int SetGamepadMappings(string mappings)
{
using var str1 = mappings.ToUTF8Buffer();
return SetGamepadMappings(str1.AsPointer());
}

/// <summary>Load shader from files and bind default locations</summary>
public static Shader LoadShader(string vsFileName, string fsFileName)
Expand Down

0 comments on commit 083a776

Please sign in to comment.