InputManager Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Manages all of the input systems.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT. . :: . .DispatcherObject
    Microsoft.SPOT.Input..::..InputManager

Namespace:  Microsoft.SPOT.Input
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public NotInheritable Class InputManager _
    Inherits DispatcherObject
public sealed class InputManager : DispatcherObject
public ref class InputManager sealed : public DispatcherObject
[<Sealed>]
type InputManager =  
    class
        inherit DispatcherObject
    end
public final class InputManager extends DispatcherObject

The InputManager type exposes the following members.

Properties

  Name Description
Public property ButtonDevice Gets the button device used by the InputManager.
Public propertyStatic member CurrentInputManager Gets the current InputManager object associated with a thread.
Public property GenericDevice
Public property InputProviders Gets the collection of input providers that are registered with the current input manager.
Public property MostRecentInputDevice Gets or sets the input device that is associated with the most recent input event.
Public property TouchDevice Gets the touch or stylus input device that is used by the InputManager.

Top

Methods

  Name Description
Public method CheckAccess Determines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ProcessInput Processes the specified input synchronously.
Public method RegisterInputProvider Registers an input source with the input manager.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method VerifyAccess Determines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)

Top

Fields

  Name Description
Public field Dispatcher Contains the Dispatcher object that the current DispatcherObject object is associated with. (Inherited from DispatcherObject.)
Public field InputDeviceEvents Contains the device events for an input device.
Public fieldStatic member InputReportEvent Specifies the bubbling-routed event that occurs when the input manager receives an input report from an InputProviderSite object.
Public fieldStatic member PreviewInputReportEvent Specifies the tunneling-routed event that occurs when the input manager receives an input report from an InputProviderSite object.

Top

Remarks

The input staging area processes raw input into WPF events. Canceling the PreProcessInput event will remove the input event from the staging area. The PostProcessInput event exposes the staging area as a stack and enables items to be popped off or pushed on to the top of the staging area. A filter is any code routine that listens for the PreProcessInput event or the PostProcessInput event. A monitor is any code routine that listens for the PreNotifyInput event or the PostNotifyInput event. Note that filters can modify the input staging area, whereas monitors cannot.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Input Namespace