From 4d660fdeba512e60892932b1b3559372f319110d Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 5 Jan 2014 23:50:17 +0100 Subject: [PATCH] [Input] Added Keyboard/MouseState.SetIsConnected to mirror JoystickState --- Source/OpenTK/Input/KeyboardState.cs | 5 +++++ Source/OpenTK/Input/MouseState.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Source/OpenTK/Input/KeyboardState.cs b/Source/OpenTK/Input/KeyboardState.cs index 49860eb0..2ba3c928 100644 --- a/Source/OpenTK/Input/KeyboardState.cs +++ b/Source/OpenTK/Input/KeyboardState.cs @@ -291,6 +291,11 @@ namespace OpenTK.Input IsConnected |= other.IsConnected; } + internal void SetIsConnected(bool value) + { + IsConnected = value; + } + #endregion #region Private Members diff --git a/Source/OpenTK/Input/MouseState.cs b/Source/OpenTK/Input/MouseState.cs index eee3a0aa..7fa48a8f 100644 --- a/Source/OpenTK/Input/MouseState.cs +++ b/Source/OpenTK/Input/MouseState.cs @@ -329,6 +329,11 @@ namespace OpenTK.Input } } + internal void SetIsConnected(bool value) + { + IsConnected = value; + } + #endregion #region Private Members