Skip to content

InputAPI reference

Class InputLayers

Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.dll
Guide: Input

The input layers in routing order: highest order first, layers of equal order in the order they were added. Events no layer takes become the polled state actions read (InputDevices) and the frame’s Events.

C#
public sealed class InputLayers

Inheritance

object ← InputLayers

Constructors

InputLayers()

C#
public InputLayers()

Properties

Count

The number of layers.

C#
public int Count { get; }

Property Value

int

InOrder

The layers, in the order events reach them.

C#
public IReadOnlyList<IInputLayer> InOrder { get; }

Property Value

IReadOnlyList<IInputLayer>

Methods

Add(IInputLayer, int)

Adds layer at order (see InputLayerOrder); adding it again moves it.

C#
public void Add(IInputLayer layer, int order = 100)

Parameters

layer IInputLayer

order int

Exceptions

ArgumentNullException

layer is null.

Contains(IInputLayer)

Whether layer was added.

C#
public bool Contains(IInputLayer layer)

Parameters

layer IInputLayer

Returns

bool

Remove(IInputLayer)

Removes layer; false when it was not added.

C#
public bool Remove(IInputLayer layer)

Parameters

layer IInputLayer

Returns

bool