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

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

Concepts

Overview of User Input and Input Devices

Reference

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