mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 19:35:28 +00:00
Polled mouse input through XQueryPointer.
This commit is contained in:
parent
ee4a5cc7ac
commit
28f90f3d17
|
@ -144,7 +144,7 @@ namespace OpenTK.Platform.X11
|
|||
//Debug.Print("Keyboard press");
|
||||
keyboardDriver.ProcessKeyboardEvent(ref e.KeyEvent);
|
||||
break;
|
||||
|
||||
/* See MouseDriver.Poll() instead.
|
||||
case XEventName.ButtonPress:
|
||||
case XEventName.ButtonRelease:
|
||||
//Debug.Print("Button");
|
||||
|
@ -155,6 +155,7 @@ namespace OpenTK.Platform.X11
|
|||
//Debug.Print("Mouse move");
|
||||
mouseDriver.ProcessMotion(ref e.MotionEvent);
|
||||
break;
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -190,8 +191,7 @@ namespace OpenTK.Platform.X11
|
|||
#region public void Poll()
|
||||
|
||||
/// <summary>
|
||||
/// Consumes to keyboard, mouse, etc events, routing them to their
|
||||
/// respective drivers.
|
||||
/// Polls and updates state of all keyboard, mouse and joystick devices.
|
||||
/// </summary>
|
||||
public void Poll()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue