From 21deea87d835930586bfdce7b7f8aa424af93a83 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 10 Aug 2014 03:01:49 +0200 Subject: [PATCH] [Linux] Correctly set evdev packet number --- Source/OpenTK/Platform/Linux/LinuxJoystick.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Linux/LinuxJoystick.cs b/Source/OpenTK/Platform/Linux/LinuxJoystick.cs index fcd621fe..a2d61a87 100644 --- a/Source/OpenTK/Platform/Linux/LinuxJoystick.cs +++ b/Source/OpenTK/Platform/Linux/LinuxJoystick.cs @@ -439,7 +439,7 @@ namespace OpenTK.Platform.Linux int packet = ((sec & 0x00ffffff) << 24) | Common.HidHelper.ScaleValue(msec, 0, 1000, 0, 255); - js.State.SetPacketNumber(unchecked((int)e->Time.Seconds)); + js.State.SetPacketNumber(packet); } } }