Table of Contents

Class InputManager

Namespace
nanoFramework.UI.Input
Assembly
nanoFramework.Graphics.dll

The InputManager class is responsible for coordinating all of the input system in nanoFramework.

The input manager exists per Dispatcher

public sealed class InputManager : DispatcherObject
Inheritance
InputManager
Inherited Members
Extension Methods

Fields

InputDeviceEvents

public InputManager.DeviceEvents[] InputDeviceEvents

Field Value

DeviceEvents[]

InputReportEvent

A routed event indicating that an input report arrived.

public static readonly RoutedEvent InputReportEvent

Field Value

RoutedEvent

PreviewInputReportEvent

A routed event indicating that an input report arrived.

public static readonly RoutedEvent PreviewInputReportEvent

Field Value

RoutedEvent

Properties

ButtonDevice

Button Device

public ButtonDevice ButtonDevice { get; }

Property Value

ButtonDevice

CurrentInputManager

Return the input manager associated with the current context.

public static InputManager CurrentInputManager { get; }

Property Value

InputManager

Remarks

This class will not be available in internet zone.

GenericDevice

GenericDevice

public GenericDevice GenericDevice { get; }

Property Value

GenericDevice

InputProviders

Returns a collection of input providers registered with the input manager.

public ICollection InputProviders { get; }

Property Value

ICollection

MostRecentInputDevice

The MostRecentInputDevice represents the last input device to report an "interesting" user action. What exactly constitutes such an action is up to each device to implement.

public InputDevice MostRecentInputDevice { get; set; }

Property Value

InputDevice

TouchDevice

Touch Device

public TouchDevice TouchDevice { get; }

Property Value

TouchDevice

Methods

ProcessInput(InputEventArgs)

Synchronously processes the specified input.

public bool ProcessInput(InputEventArgs input)

Parameters

input InputEventArgs

Returns

bool

Whether or not any event generated as a consequence of this event was handled.

Remarks

The specified input is processed by all of the filters and monitors, and is finally dispatched to the appropriate element as an input event.

RegisterInputProvider(object)

Registers an input provider with the input manager.

public InputProviderSite RegisterInputProvider(object inputProvider)

Parameters

inputProvider object

The input provider to register.

Returns

InputProviderSite