KeyState Enumeration (Microsoft.Xna.Framework.Input)

Identifies the state of a keyboard key.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public enum KeyState

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The KeyState type exposes the following members.

  Platforms Name Description
Down Key is pressed. 
Up Key is released. 
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop