Skip to content

InputAPI reference

Struct RoutedEvent

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

One event of the frame and where it went (Routed).

C#
public readonly struct RoutedEvent : IEquatable<RoutedEvent>

Implements

IEquatable<RoutedEvent>

Constructors

RoutedEvent(InputEvent, IInputLayer?)

One event of the frame and where it went (Routed).

C#
public RoutedEvent(InputEvent Event, IInputLayer? Layer)

Parameters

Event InputEvent

The event.

Layer IInputLayer?

The input layer that took it (or that took the press it ends), or null when it reached the devices and gameplay.

Properties

Event

The event.

C#
public InputEvent Event { get; init; }

Property Value

InputEvent

Layer

The input layer that took it (or that took the press it ends), or null when it reached the devices and gameplay.

C#
public IInputLayer? Layer { get; init; }

Property Value

IInputLayer?

Methods

Deconstruct(out InputEvent, out IInputLayer?)

C#
public void Deconstruct(out InputEvent Event, out IInputLayer? Layer)

Parameters

Event InputEvent

Layer IInputLayer?

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(RoutedEvent)

C#
public bool Equals(RoutedEvent other)

Parameters

other RoutedEvent

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(RoutedEvent, RoutedEvent)

C#
public static bool operator ==(RoutedEvent left, RoutedEvent right)

Parameters

left RoutedEvent

right RoutedEvent

Returns

bool

operator !=(RoutedEvent, RoutedEvent)

C#
public static bool operator !=(RoutedEvent left, RoutedEvent right)

Parameters

left RoutedEvent

right RoutedEvent

Returns

bool