Keyboard Class (Microsoft.Xna.Framework.Input)

Allows getting keystrokes from keyboard.

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

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop