Enabled X11Input mouse driver.

This commit is contained in:
the_fiddler 2007-09-24 21:23:27 +00:00
parent 4743d5afd6
commit 38d779eb1a

View file

@ -86,10 +86,13 @@ namespace OpenTK.Platform.X11
window = attach as Platform.WindowInfo ?? attach as X11.WindowInfo; window = attach as Platform.WindowInfo ?? attach as X11.WindowInfo;
keyboardDriver = new X11Keyboard(window); keyboardDriver = new X11Keyboard(window);
mouseDriver = new X11Mouse(window);
// Todo: mask is now specified by hand, hard to keep in sync. // Todo: mask is now specified by hand, hard to keep in sync.
API.SelectInput(window.Display, window.Handle, EventMask.StructureNotifyMask | API.SelectInput(window.Display, window.Handle, EventMask.StructureNotifyMask |
EventMask.SubstructureNotifyMask | EventMask.ExposureMask | EventMask.SubstructureNotifyMask | EventMask.ExposureMask |
EventMask.KeyReleaseMask | EventMask.KeyPressMask); EventMask.KeyReleaseMask | EventMask.KeyPressMask |
EventMask.PointerMotionMask | EventMask.PointerMotionHintMask |
EventMask.ButtonPressMask | EventMask.ButtonReleaseMask);
Debug.Unindent(); Debug.Unindent();
} }