Repository navigation
KeyboardStateManager.cs
This class derives from GameComponent and handles keyboard input.
This is the current state of the keyboard, it is set on each Update(GameTime gameTime) call.
This is the last state of the keyboard,it is set on each PreUpdate(GameTime gameTime) call.
Is true if NumLock is active.
Is true if CapsLock is active
Is true if either Shit key is down.
Is true if either Ctrl key is down.
This is the class constructor, it put's this instance of the class into the Game.Components list as well as registering it's self as a Game.Service.
This returns an array of all the current keys being pressed.
This returns an array of all the keys pressed in this frame and not in the last frame.
Is true if the given key is down
Is true if the given key was down last frame but not now.
Sets the State to the current keyboard sate.
Sets the LastState to State, this should be called at the top of the Game.Update method.