public static string GetKeyName(SDL2KeyCode key) { var ptr = GetKeyNamePtr(key); if (ptr != IntPtr.Zero) { return(Marshal.PtrToStringAuto(ptr)); } return(string.Empty); }
public static extern SDL2ScanCode GetScancodeFromKey(SDL2KeyCode key);
public static string GetKeyName(SDL2KeyCode key) { var ptr = GetKeyNamePtr(key); if (ptr != IntPtr.Zero) return Marshal.PtrToStringAuto(ptr); return string.Empty; }
public static extern IntPtr GetKeyNamePtr(SDL2KeyCode key);