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

How to: Detect Whether a Key Is Pressed

Concepts

Input Overview

Reference

KeyboardState Members
Microsoft.Xna.Framework.Input Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista