Dela via


ICorePointerInputSource Interface

Definition

Defines the behavior of pointer input (for processing on a worker thread).

public interface class ICorePointerInputSource
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3153181464, 58490, 18667, 136, 7, 248, 248, 211, 234, 69, 81)]
struct ICorePointerInputSource
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3153181464, 58490, 18667, 136, 7, 248, 248, 211, 234, 69, 81)]
public interface ICorePointerInputSource
Public Interface ICorePointerInputSource
Derived
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

HasCapture

Occurs if the pointer input source has capture functionality.

PointerCursor

Gets or sets the pointer cursor type.

PointerPosition

Gets the current position of the pointer in screen coordinates.

Methods

ReleasePointerCapture()

Stops the capture of pointer input data.

SetPointerCapture()

Starts the capture of pointer input data, if the pointer input device supports it.

Events

PointerCaptureLost

Occurs when the pointer input capture stream fails or is lost.

PointerEntered

Occurs when the pointer enters a UI element.

PointerExited

Occurs when the pointer exits a UI element.

PointerMoved

Occurs when the pointer is moved.

PointerPressed

Occurs when a press action (such as a screen press or mouse click) is received for the pointer.

PointerReleased

Occurs when a release action (such as a screen press-release or mouse click-release) is received for the pointer.

PointerWheelChanged

Occurs when the pointer wheel (mouse or virtual) has changed position.

Applies to

See also