Share via


Keyboard.GetState Method

Returns the current keyboard or Chatpad state.

Overload List

Name Description
Keyboard.GetState () Returns the current keyboard state.
Keyboard.GetState (PlayerIndex) Returns the current Chatpad state for the specified player.

See Also

Tasks

How To: Detect Whether a Key Is Pressed

Concepts

Input Overview

Reference

Keyboard Class
Keyboard Members
Microsoft.Xna.Framework.Input Namespace