mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 14:40:34 +00:00
Relative pointer motion should use the relative (Delta) query functions.
This commit is contained in:
parent
a7ca0921df
commit
ee69d2354f
|
@ -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