From 38d779eb1a52d0830c18953b0d6ada15b00580f1 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 24 Sep 2007 21:23:27 +0000 Subject: [PATCH] Enabled X11Input mouse driver. --- Source/OpenTK/Platform/X11/X11Input.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/X11Input.cs b/Source/OpenTK/Platform/X11/X11Input.cs index 04b4b537..725fbf9f 100644 --- a/Source/OpenTK/Platform/X11/X11Input.cs +++ b/Source/OpenTK/Platform/X11/X11Input.cs @@ -86,10 +86,13 @@ namespace OpenTK.Platform.X11 window = attach as Platform.WindowInfo ?? attach as X11.WindowInfo; keyboardDriver = new X11Keyboard(window); + mouseDriver = new X11Mouse(window); // Todo: mask is now specified by hand, hard to keep in sync. API.SelectInput(window.Display, window.Handle, EventMask.StructureNotifyMask | EventMask.SubstructureNotifyMask | EventMask.ExposureMask | - EventMask.KeyReleaseMask | EventMask.KeyPressMask); + EventMask.KeyReleaseMask | EventMask.KeyPressMask | + EventMask.PointerMotionMask | EventMask.PointerMotionHintMask | + EventMask.ButtonPressMask | EventMask.ButtonReleaseMask); Debug.Unindent(); }