Export (0) Print
Expand All

Keyboard.GetState Method (PlayerIndex)

Returns the current Chatpad state for the specified player.

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

public static KeyboardState GetState (
         PlayerIndex playerIndex
)

Parameters

playerIndex
Player index of the Chatpad to query.

Return Value

Current Chatpad state.

Exception typeCondition
InvalidOperationExceptionAn invalid operation occurred when querying the Chatpad state.

Each player can have their own Chatpad, which is queried as a keyboard. To query an attached USB keyboard instead, use the GetState method that does not require a player index.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2015 Microsoft