Watches a IInput
- Inheritance:
- object object
Constructors
InputAdapter(IInputElement)
Initializes a new instance of the Input
Parameter | Type | Description |
---|---|---|
element | IInput |
The IInput |
Properties
AttachedEventKinds
Gets or sets the kinds of events that should be attached to and notified by this class.
Property Value
- Input
Adapter :Event Kinds A flags-based Input
Adapter that indicates the events to attach.Event Kinds
IsAttached
Gets whether the adapter is currently attached to any events.
Property Value
- bool:
true
if the adapter is currently attached to any events; otherwise,false
.
See Also
TargetElement
Gets the target IInput
Property Value
- IInput
Element : The target IInput
Element that is being watched.
Methods
CapturePointer(InputPointerEventArgs)
Captures the pointer that sourced the specified event arguments.
Parameter | Type | Description |
---|---|---|
e | Input |
The event arguments to examine. |
Returns
- bool:
true
if the pointer was captured; otherwise,false
.
Remarks
This method should only be called in a Pointer
CapturePointer(InputPointerEventArgs, IInputElement)
Captures the pointer that sourced the specified event arguments on a designated target element.
Parameter | Type | Description |
---|---|---|
e | Input |
The event arguments to examine. |
targetElement | IInput |
The target element. |
Returns
- bool:
true
if the pointer was captured; otherwise,false
.
Remarks
This method should only be called in a Pointer
IsAttachedTo(InputAdapterEventKinds)
Returns whether the specified event kind is currently attached.
Parameter | Type | Description |
---|---|---|
kind | Input |
The kind of event. |
Returns
- bool:
true
if the specified event kind is currently attached; otherwise,false
.
See Also
ReleasePointerCaptures()
Releases all pointer captures.
Events
PointerCaptureLost
Occurs when the pointer capture is lost.
Event Type
PointerEntered
Occurs when the pointer enters the element.
Event Type
PointerExited
Occurs when the pointer exits the element.
Event Type
PointerMoved
Occurs when the pointer moves over the element.
Event Type
PointerPressed
Occurs when a pointer button is pressed over the element.
Event Type
PointerReleased
Occurs when a pointer button is released over the element.
Event Type
PointerWheelChanged
Occurs when a pointer wheel is changed over the element.