* X11Mouse.cs: Updated comments to clarify the capabilities of the driver.
This commit is contained in:
parent
32a564c990
commit
45a623a873
1 changed files with 8 additions and 4 deletions
|
@ -36,10 +36,13 @@ namespace OpenTK.Platform.X11
|
||||||
// because X11 doesn't deliver core pointer events to background
|
// because X11 doesn't deliver core pointer events to background
|
||||||
// windows (unless we grab, which will break *everything*).
|
// windows (unless we grab, which will break *everything*).
|
||||||
// The only solution is to poll.
|
// The only solution is to poll.
|
||||||
// Note 2: this driver only supports absolute positions.
|
// Note 2: this driver only supports absolute positions. Relative motion
|
||||||
// Note 3: polling means we cannot ignore move events generated
|
// is faked through SetPosition. This is called automatically when
|
||||||
// through SetPosition. In short, this won't work as expected (we
|
// NativeWindow.CursorVisible = false, otherwise it must be called
|
||||||
// simply cannot deliver relative movement through this driver).
|
// by the user.
|
||||||
|
// Note 3: this driver cannot drive the mouse wheel reliably.
|
||||||
|
// See comments in ProcessEvents() for more information.
|
||||||
|
// (If someone knows of a solution, please tell!)
|
||||||
sealed class X11Mouse : IMouseDriver2
|
sealed class X11Mouse : IMouseDriver2
|
||||||
{
|
{
|
||||||
readonly IntPtr display;
|
readonly IntPtr display;
|
||||||
|
@ -134,6 +137,7 @@ namespace OpenTK.Platform.X11
|
||||||
// After spending a week on this, I simply don't care anymore.
|
// After spending a week on this, I simply don't care anymore.
|
||||||
// If someone can fix it, please do.
|
// If someone can fix it, please do.
|
||||||
// Note 2: I have tried passively grabbing those buttons - no go (BadAccess).
|
// Note 2: I have tried passively grabbing those buttons - no go (BadAccess).
|
||||||
|
// Maybe I am doing something wrong with the grab.
|
||||||
//if ((buttons & (int)MouseMask.Button4Mask) != 0)
|
//if ((buttons & (int)MouseMask.Button4Mask) != 0)
|
||||||
// mouse.WheelPrecise++;
|
// mouse.WheelPrecise++;
|
||||||
//if ((buttons & (int)MouseMask.Button5Mask) != 0)
|
//if ((buttons & (int)MouseMask.Button5Mask) != 0)
|
||||||
|
|
Loading…
Reference in a new issue