mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 11:35:39 +00:00
Relative pointer motion should use the relative (Delta) query functions.
This commit is contained in:
parent
9494457c26
commit
bbbbc75e75
|
@ -512,7 +512,7 @@ namespace OpenTK.Platform.Linux
|
||||||
|
|
||||||
void HandlePointerMotion(MouseDevice mouse, PointerEvent e)
|
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)
|
if (mouse != null)
|
||||||
{
|
{
|
||||||
mouse.State.SetIsConnected(true);
|
mouse.State.SetIsConnected(true);
|
||||||
|
|
Loading…
Reference in a new issue