Keyboard Class (Microsoft.Xna.Framework.Input)

Allows getting keystrokes from keyboard.
System.Object
   Microsoft.Xna.Framework.Input.Keyboard

Namespace: Microsoft.Xna.Framework.Input
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static class Keyboard

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The Keyboard type exposes the following members.

  Platforms Name Description
GetState() Returns the current keyboard state. 
GetState(PlayerIndex) Returns the current keyboard state for a given player. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web