Generated by DocFX

Class KeyboardMonitor

Monitors changes in Keyboard key state

Inheritance
System.Object
InputMonitor<Microsoft.Xna.Framework.Input.KeyboardState, Microsoft.Xna.Framework.Input.Keys>
KeyboardMonitor
Inherited Members
InputMonitor<KeyboardState, Keys>.previousState
InputMonitor<KeyboardState, Keys>.currentState
InputMonitor<KeyboardState, Keys>.UpdateActive
InputMonitor<KeyboardState, Keys>.BeginUpdate(KeyboardState)
InputMonitor<KeyboardState, Keys>.EndUpdate()
InputMonitor<KeyboardState, Keys>.GetInputState(Keys)
InputMonitor<KeyboardState, Keys>.CheckButton(Keys, InputState)
InputMonitor<KeyboardState, Keys>.CheckAnyButton(Keys[], InputState)
InputMonitor<KeyboardState, Keys>.CheckAllButtons(Keys[], InputState)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ladybug.UserInput
Assembly: ladybug.dll
Syntax
public class KeyboardMonitor : InputMonitor<KeyboardState, Keys>

Methods

| Improve this Doc View Source

GetInputState(Keys)

Gets the InputState of the given key

Declaration
public override InputState GetInputState(Keys k)
Parameters
Type Name Description
Microsoft.Xna.Framework.Input.Keys k
Returns
Type Description
InputState
Overrides
Ladybug.UserInput.InputMonitor<Microsoft.Xna.Framework.Input.KeyboardState, Microsoft.Xna.Framework.Input.Keys>.GetInputState(Microsoft.Xna.Framework.Input.Keys)