KeyboardState.Item Property
Returns the state of a particular key.
Syntax
'Declaration
Public ReadOnly Property Item ( _
key As Keys _
) As KeyState
public KeyState this [
Keys key
] { get; }
public:
property KeyState default [Keys] {
KeyState get (Keys key);
}
Property Value
Type: KeyState
The state of the key specified by key.
Requirements
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Tasks
Concepts
Overview of User Input and Input Devices
Reference
KeyboardState Structure
KeyboardState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Windows Phone