Export (0) Print
Expand All

KeyboardState Constructor

Initializes a new instance of the KeyboardState class.

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

public KeyboardState (
         Keys[] keys
)

Parameters

keys
Array or parameter list of Keys to initialize as pressed.

Games normally use GetState to get the true keyboard state. This constructor is used to instead simulate keyboard input for passing within the game's own input subsystem.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show:
© 2015 Microsoft