Beispiel #1
0
        /// <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 (&quot;&quot;).</para>
/// </returns>
/// <remarks>SDL_Scancode</remarks>
        public static string GetScancodeName(global::SharpSDL.ScanCode scancode)
        {
            var __ret = __Internal.GetScancodeName(scancode);

            return(Marshal.PtrToStringAnsi(__ret));
        }
Beispiel #2
0
 internal static extern global::System.IntPtr GetScancodeName(global::SharpSDL.ScanCode scancode);
Beispiel #3
0
        /// <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);
        }
Beispiel #4
0
 internal static extern int GetKeyFromScancode(global::SharpSDL.ScanCode scancode);