Skip to main content

InputManager

Namespace: MonineEngine.Input

Global manager for input handling, including keyboard, mouse, and game pads.

public static class InputManager

Inheritance ObjectInputManager
Attributes NullableContextAttribute, NullableAttribute

Properties

Keyboard

Gets state information of keyboard input.

public static KeyboardInfo Keyboard { get; private set; }

Property Value

KeyboardInfo

Mouse

Gets state information of mouse input.

public static MouseInfo Mouse { get; private set; }

Property Value

MouseInfo

GamePads

Gets an array of information about connected gamepads. This array has a length of 4, with 4 gamepads able to be connected at once.

public static GamePadInfo[] GamePads { get; private set; }

Property Value

GamePadInfo[]

Methods

Update(GameTime)

Updates the state information for keyboard and mouse inputs.

public static void Update(GameTime gameTime)

Parameters

gameTime GameTime
A snapshot of the in the current update cycle.