mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 20:05:39 +00:00
Enabled X11Input mouse driver.
This commit is contained in:
parent
4743d5afd6
commit
38d779eb1a
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue