KeyState Enumeration (Microsoft.Xna.Framework.Input)

Identifies the state of a keyboard key.

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • 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. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web