fix mouse clicks
This commit is contained in:
parent
19c8a97a7c
commit
017b5fb62d
2 changed files with 17 additions and 2 deletions
|
@ -68,7 +68,22 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Version>1.0.1</Version>
|
<Version>1.0.2</Version>
|
||||||
|
<Description>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</Description>
|
||||||
|
<PackageId>OpenTK.NetStandard</PackageId>
|
||||||
|
<Authors>emmaus</Authors>
|
||||||
|
<Company>emmaus</Company>
|
||||||
|
<Product>OpenTK</Product>
|
||||||
|
<PackageProjectUrl>https://github.com/emmauss/opentk</PackageProjectUrl>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||||
<Exec Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Debug\Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ..\..\OpenTK.snk -debug -netstandard" Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Debug'" />
|
<Exec Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Debug\Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ..\..\OpenTK.snk -debug -netstandard" Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Debug'" />
|
||||||
|
|
|
@ -126,7 +126,7 @@ namespace OpenTK.Platform.Windows
|
||||||
deviceDesc = deviceDesc.Substring(deviceDesc.LastIndexOf(';') + 1);
|
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)))
|
if (!rawids.ContainsKey(new ContextHandle(dev.Device)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue