mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 04:05:36 +00:00
Polled mouse input through XQueryPointer.
This commit is contained in:
parent
d6a001f878
commit
aea2f77892
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue