From 407d6fdf089b2f4fd574690a8b439b385149f80f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 30 May 2009 21:40:42 +0000 Subject: [PATCH] Added XAutoRepeatOn() method. --- Source/OpenTK/Platform/X11/Functions.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Platform/X11/Functions.cs b/Source/OpenTK/Platform/X11/Functions.cs index 4a58b2ca..814d6162 100644 --- a/Source/OpenTK/Platform/X11/Functions.cs +++ b/Source/OpenTK/Platform/X11/Functions.cs @@ -397,7 +397,7 @@ namespace OpenTK.Platform.X11 public extern static bool XFilterEvent(ref XEvent xevent, IntPtr window); [DllImport("libX11")] - public extern static void XkbSetDetectableAutoRepeat(IntPtr display, bool detectable, IntPtr supported); + public extern static bool XkbSetDetectableAutoRepeat(IntPtr display, bool detectable, out bool supported); [DllImport("libX11")] public extern static void XPeekEvent(IntPtr display, ref XEvent xevent); @@ -427,7 +427,10 @@ namespace OpenTK.Platform.X11 [DllImport("libX11")] public static extern void XAutoRepeatOff(IntPtr display); - + + [DllImport("libX11")] + public static extern void XAutoRepeatOn(IntPtr display); + public static void SendNetWMMessage(X11WindowInfo window, IntPtr message_type, IntPtr l0, IntPtr l1, IntPtr l2) { XEvent xev;