From 017b5fb62d27bddb5d070787b46f4d9ca256b31e Mon Sep 17 00:00:00 2001 From: emmaus Date: Tue, 19 Jun 2018 10:46:02 +0000 Subject: [PATCH] fix mouse clicks --- src/OpenTK/OpenTK.Standard.csproj | 17 ++++++++++++++++- src/OpenTK/Platform/Windows/WinRawMouse.cs | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/OpenTK/OpenTK.Standard.csproj b/src/OpenTK/OpenTK.Standard.csproj index a6edc1cd..e52376d5 100644 --- a/src/OpenTK/OpenTK.Standard.csproj +++ b/src/OpenTK/OpenTK.Standard.csproj @@ -68,7 +68,22 @@ true - 1.0.1 + 1.0.2 + The Open Toolkit library (OpenTK) is an advanced, low-level C# wrapper for OpenGL, OpenGL ES and OpenAL. + It is suitable for games, scientific visualizations and projects that require 3d graphics, audio or compute functionality. + + Features + - Create cutting-edge graphics with OpenGL 4.4 and OpenGL ES 3.0 + - Use the .Net/Mono language of your choice: C#, F#, VB.Net, Boo, IronPython, IronRuby + - Develop faster with inline documentation and strongly-typed enumerations for all OpenGL and OpenAL functions + + This is a .NET Core-compatible version of OpenTK. +This version can be found at https://github.com/emmauss/opentk + OpenTK.NetStandard + emmaus + emmaus + OpenTK + https://github.com/emmauss/opentk diff --git a/src/OpenTK/Platform/Windows/WinRawMouse.cs b/src/OpenTK/Platform/Windows/WinRawMouse.cs index 877f906e..13884c99 100644 --- a/src/OpenTK/Platform/Windows/WinRawMouse.cs +++ b/src/OpenTK/Platform/Windows/WinRawMouse.cs @@ -126,7 +126,7 @@ namespace OpenTK.Platform.Windows deviceDesc = deviceDesc.Substring(deviceDesc.LastIndexOf(';') + 1); } - if (!String.IsNullOrEmpty(deviceClass) && deviceClass.ToLower().Equals("mouse")) + if (dev.Type == RawInputDeviceType.MOUSE || !String.IsNullOrEmpty(deviceClass) && deviceClass.ToLower().Equals("mouse")) { if (!rawids.ContainsKey(new ContextHandle(dev.Device))) {