From 24585a106686c0af31723c0a0756e6e34c6b00ed Mon Sep 17 00:00:00 2001 From: emmaus Date: Tue, 4 Feb 2020 22:29:00 +0000 Subject: [PATCH] test --- InputTest/Program.cs | 8 ++++---- src/OpenTK/OpenTK.Standard.csproj | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/InputTest/Program.cs b/InputTest/Program.cs index cea67caf..73216e64 100644 --- a/InputTest/Program.cs +++ b/InputTest/Program.cs @@ -20,11 +20,11 @@ namespace InputTest while (true) { - var keyboard = Keyboard.GetState(); - if (keyboard.IsAnyKeyDown) + var mouseCurs = Mouse.GetCursorState(); + var mouse = Mouse.GetState(); + if (mouseCurs.IsAnyButtonDown || mouse.IsAnyButtonDown) { - Console.WriteLine("Key detected. Working"); - break; + Console.WriteLine(mouseCurs.X + " " + mouseCurs.Y + " - " + mouse.X + " " + mouse.Y); } Thread.Sleep(500); diff --git a/src/OpenTK/OpenTK.Standard.csproj b/src/OpenTK/OpenTK.Standard.csproj index c75a96eb..ef6d4ae3 100644 --- a/src/OpenTK/OpenTK.Standard.csproj +++ b/src/OpenTK/OpenTK.Standard.csproj @@ -68,7 +68,7 @@ true - 1.0.5.10 + 1.0.5.12 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. @@ -84,8 +84,8 @@ This version can be found at https://github.com/emmauss/opentk emmaus OpenTK https://github.com/emmauss/opentk - 1.0.5.10 - 1.0.5.10 + 1.0.5.12 + 1.0.5.12 @@ -114,4 +114,4 @@ This version can be found at https://github.com/emmauss/opentk - \ No newline at end of file +