This documentation is archived and is not being maintained.

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)

public Keys[] GetPressedKeys ()

Return Value

The keys that are currently pressed.

Xbox 360, Windows XP SP2, Windows Vista

Show: