KeyboardState.Item Property
Returns the state of a particular key.
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public KeyState this [
Keys key
] { get; }
Property Value
The state of the key specified by key.
See Also
Tasks
How to: Detect Whether a Key Is Pressed
Concepts
Reference
KeyboardState Structure
KeyboardState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista