Esempio n. 1
0
        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);
Esempio n. 5
0
 public static extern SDL2ScanCode GetScancodeFromKey(SDL2KeyCode key);
Esempio n. 6
0
 public static extern IntPtr GetKeyNamePtr(SDL2KeyCode key);