/// <summary>Get a human-readable name for a scancode.</summary> /// <returns> /// <para>A pointer to the name for the scancode.</para> /// <para>If the scancode doesn't have a name, this function returns</para> /// <para>an empty string ("").</para> /// </returns> /// <remarks>SDL_Scancode</remarks> public static string GetScancodeName(global::SharpSDL.ScanCode scancode) { var __ret = __Internal.GetScancodeName(scancode); return(Marshal.PtrToStringAnsi(__ret)); }
internal static extern global::System.IntPtr GetScancodeName(global::SharpSDL.ScanCode scancode);
/// <summary> /// <para>Get the key code corresponding to the given scancode according</para> /// <para>to the current keyboard layout.</para> /// </summary> /// <remarks> /// <para>See ::SDL_Keycode for details.</para> /// <para>SDL_GetKeyName()</para> /// </remarks> public static int GetKeyFromScancode(global::SharpSDL.ScanCode scancode) { var __ret = __Internal.GetKeyFromScancode(scancode); return(__ret); }
internal static extern int GetKeyFromScancode(global::SharpSDL.ScanCode scancode);