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
InputReportEvent
A routed event indicating that an input report arrived.
public static readonly RoutedEvent InputReportEvent
Field Value
PreviewInputReportEvent
A routed event indicating that an input report arrived.
public static readonly RoutedEvent PreviewInputReportEvent
Field Value
Properties
ButtonDevice
Button Device
public ButtonDevice ButtonDevice { get; }
Property Value
CurrentInputManager
Return the input manager associated with the current context.
public static InputManager CurrentInputManager { get; }
Property Value
Remarks
This class will not be available in internet zone.
GenericDevice
GenericDevice
public GenericDevice GenericDevice { get; }
Property Value
InputProviders
Returns a collection of input providers registered with the input manager.
public ICollection InputProviders { get; }
Property Value
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
TouchDevice
Touch Device
public TouchDevice TouchDevice { get; }
Property Value
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
objectThe input provider to register.