Polled mouse input through XQueryPointer.

This commit is contained in:
the_fiddler 2007-09-26 15:41:14 +00:00
parent d6a001f878
commit aea2f77892

View file

@ -144,7 +144,7 @@ namespace OpenTK.Platform.X11
//Debug.Print("Keyboard press"); //Debug.Print("Keyboard press");
keyboardDriver.ProcessKeyboardEvent(ref e.KeyEvent); keyboardDriver.ProcessKeyboardEvent(ref e.KeyEvent);
break; break;
/* See MouseDriver.Poll() instead.
case XEventName.ButtonPress: case XEventName.ButtonPress:
case XEventName.ButtonRelease: case XEventName.ButtonRelease:
//Debug.Print("Button"); //Debug.Print("Button");
@ -155,6 +155,7 @@ namespace OpenTK.Platform.X11
//Debug.Print("Mouse move"); //Debug.Print("Mouse move");
mouseDriver.ProcessMotion(ref e.MotionEvent); mouseDriver.ProcessMotion(ref e.MotionEvent);
break; break;
*/
} }
} }
@ -190,8 +191,7 @@ namespace OpenTK.Platform.X11
#region public void Poll() #region public void Poll()
/// <summary> /// <summary>
/// Consumes to keyboard, mouse, etc events, routing them to their /// Polls and updates state of all keyboard, mouse and joystick devices.
/// respective drivers.
/// </summary> /// </summary>
public void Poll() public void Poll()
{ {