From 21efddea0404dd5e5de9a1b32d222d218bb669fc Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 26 Sep 2007 16:57:43 +0000 Subject: [PATCH] Commented out Keymap struct in X11/API.cs, due to a bug in Mono's 1.2.5 gmcs compiler. --- Source/OpenTK/Platform/X11/API.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/API.cs b/Source/OpenTK/Platform/X11/API.cs index 1f77f398..29a479ad 100644 --- a/Source/OpenTK/Platform/X11/API.cs +++ b/Source/OpenTK/Platform/X11/API.cs @@ -1142,6 +1142,7 @@ XF86VidModeGetGammaRampSize( #region XQueryKeymap + /* /// /// The XQueryKeymap() function returns a bit vector for the logical state of the keyboard, where each bit set to 1 indicates that the corresponding key is currently pressed down. The vector is represented as 32 bytes. Byte N (from 0) contains the bits for keys 8N to 8N + 7 with the least-significant bit in the byte representing key 8N. /// @@ -1150,6 +1151,7 @@ XF86VidModeGetGammaRampSize( /// Note that the logical state of a device (as seen by client applications) may lag the physical state if device event processing is frozen. [DllImport("libX11", EntryPoint = "XQueryKeymap")] extern public static void XQueryKeymap(IntPtr display, [MarshalAs(UnmanagedType.LPArray, SizeConst = 32), In, Out] Keymap keys); + */ /// /// The XQueryKeymap() function returns a bit vector for the logical state of the keyboard, where each bit set to 1 indicates that the corresponding key is currently pressed down. The vector is represented as 32 bytes. Byte N (from 0) contains the bits for keys 8N to 8N + 7 with the least-significant bit in the byte representing key 8N. @@ -1187,7 +1189,7 @@ XF86VidModeGetGammaRampSize( #endregion } - + /* [StructLayout(LayoutKind.Sequential)] public struct Keymap { @@ -1207,4 +1209,5 @@ XF86VidModeGetGammaRampSize( } } } + */ }