Relative pointer motion should use the relative (Delta) query functions.

This commit is contained in:
Malcolm Still 2017-01-06 15:34:11 +00:00
parent a7ca0921df
commit ee69d2354f

View file

@ -512,7 +512,7 @@ namespace OpenTK.Platform.Linux
void HandlePointerMotion(MouseDevice mouse, PointerEvent e)
{
Vector2 delta = new Vector2((float)e.X, (float)e.Y);
Vector2 delta = new Vector2((float)e.DeltaX, (float)e.DeltaY);
if (mouse != null)
{
mouse.State.SetIsConnected(true);