Permalink
Browse files

[Input] Added Keyboard/MouseState.SetIsConnected to mirror JoystickState

  • Loading branch information...
1 parent e984ddd commit 4d660fdeba512e60892932b1b3559372f319110d @thefiddler thefiddler committed Jan 5, 2014
Showing with 10 additions and 0 deletions.
  1. +5 −0 Source/OpenTK/Input/KeyboardState.cs
  2. +5 −0 Source/OpenTK/Input/MouseState.cs
@@ -291,6 +291,11 @@ internal void MergeBits(KeyboardState other)
IsConnected |= other.IsConnected;
}
+ internal void SetIsConnected(bool value)
+ {
+ IsConnected = value;
+ }
+
#endregion
#region Private Members
@@ -329,6 +329,11 @@ internal void MergeBits(MouseState other)
}
}
+ internal void SetIsConnected(bool value)
+ {
+ IsConnected = value;
+ }
+
#endregion
#region Private Members

0 comments on commit 4d660fd

Please sign in to comment.