Class InputManager
The InputManager class is responsible for coordinating all of the input system in nanoFramework.
The input manager exists per Dispatcher
Inherited Members
Namespace: nanoFramework.UI.Input
Assembly: nanoFramework.Graphics.dll
Syntax
public sealed class InputManager : DispatcherObject
Fields
InputDeviceEvents
Declaration
public InputManager.DeviceEvents[] InputDeviceEvents
Field Value
Type | Description |
---|---|
DeviceEvents[] |
InputReportEvent
A routed event indicating that an input report arrived.
Declaration
public static readonly RoutedEvent InputReportEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
PreviewInputReportEvent
A routed event indicating that an input report arrived.
Declaration
public static readonly RoutedEvent PreviewInputReportEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
Properties
ButtonDevice
Button Device
Declaration
public ButtonDevice ButtonDevice { get; }
Property Value
Type | Description |
---|---|
ButtonDevice |
CurrentInputManager
Return the input manager associated with the current context.
Declaration
public static InputManager CurrentInputManager { get; }
Property Value
Type | Description |
---|---|
InputManager |
Remarks
This class will not be available in internet zone.
GenericDevice
GenericDevice
Declaration
public GenericDevice GenericDevice { get; }
Property Value
Type | Description |
---|---|
GenericDevice |
InputProviders
Returns a collection of input providers registered with the input manager.
Declaration
public ICollection InputProviders { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
public InputDevice MostRecentInputDevice { get; set; }
Property Value
Type | Description |
---|---|
InputDevice |
TouchDevice
Touch Device
Declaration
public TouchDevice TouchDevice { get; }
Property Value
Type | Description |
---|---|
TouchDevice |
Methods
ProcessInput(InputEventArgs)
Synchronously processes the specified input.
Declaration
public bool ProcessInput(InputEventArgs input)
Parameters
Type | Name | Description |
---|---|---|
InputEventArgs | input |
Returns
Type | Description |
---|---|
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.
Declaration
public InputProviderSite RegisterInputProvider(object inputProvider)
Parameters
Type | Name | Description |
---|---|---|
object | inputProvider | The input provider to register. |
Returns
Type | Description |
---|---|
InputProviderSite |