KeyboardState.GetPressedKeys Method
Gets an array of values that correspond to the keyboard keys that are currently being pressed.
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public Keys[] GetPressedKeys ()
Return Value
The keys that are currently pressed.
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