KeyboardState Structure

Represents a state of keystrokes recorded by a keyboard input device.

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public struct KeyboardState

See Also

Tasks

Detecting a Key Press (Windows, Windows Phone, Xbox 360)

Concepts

Overview of User Input and Input Devices

Reference

KeyboardState Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone