KeyboardState Constructor
Initializes a new instance of the KeyboardState class.
Syntax
'Declaration
Public Sub New ( _
keys As Keys() _
)
public KeyboardState (
params Keys[] keys
)
public:
KeyboardState(
params Keys keys[]
)
Parameters
Remarks
Games normally use GetState to get the true keyboard state. This constructor is used instead to simulate keyboard input for passing within the game's own input subsystem.
Requirements
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
KeyboardState Structure
KeyboardState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Windows Phone