Namespace: Microsoft.Xna.Framework.InputAssembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
public static KeyboardState GetState ( PlayerIndex playerIndex )
Each player can have his or her 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.
This method works on Xbox 360 platforms only. Windows does not include driver support for the ChatPad.
This method is included in the assemblies for Windows, but it is effectively a null function on that platform. Calls to Keyboard.GetState(playerIndex) from a Windows application are accepted, but will never return a ChatPad state change (key press or release).