ICorePointerInputSource ICorePointerInputSource ICorePointerInputSource Interface

Definition

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

public interface ICorePointerInputSourcepublic interface ICorePointerInputSourcePublic Interface ICorePointerInputSource
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

HasCapture HasCapture HasCapture HasCapture

Occurs if the pointer input source has capture functionality.

public bool HasCapture { get; }public bool HasCapture { get; }Public ReadOnly Property HasCapture As boolpublic bool HasCapture { get; }
Value
bool bool bool

True if the pointer input source has capture functionality; false if it does not.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerCursor PointerCursor PointerCursor PointerCursor

Gets or sets the current pointer cursor type.

public CoreCursor PointerCursor { get; set; }public CoreCursor PointerCursor { get; set; }Public ReadWrite Property PointerCursor As CoreCursorpublic CoreCursor PointerCursor { get; set; }
Value
CoreCursor CoreCursor CoreCursor

The current pointer cursor.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerPosition PointerPosition PointerPosition PointerPosition

Gets the current position of the pointer in screen coordinates.

public Point PointerPosition { get; }public Point PointerPosition { get; }Public ReadOnly Property PointerPosition As Pointpublic Point PointerPosition { get; }
Value
Point Point Point

The current position of the pointer, in screen coordinates.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

ReleasePointerCapture() ReleasePointerCapture() ReleasePointerCapture() ReleasePointerCapture()

Stops the capture of pointer input data.

public void ReleasePointerCapture()public void ReleasePointerCapture()Public Function ReleasePointerCapture() As voidpublic void ReleasePointerCapture()
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

SetPointerCapture() SetPointerCapture() SetPointerCapture() SetPointerCapture()

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

public void SetPointerCapture()public void SetPointerCapture()Public Function SetPointerCapture() As voidpublic void SetPointerCapture()
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Events

PointerCaptureLost PointerCaptureLost PointerCaptureLost PointerCaptureLost

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

public abstract event TypedEventHandler PointerCaptureLostpublic abstract event TypedEventHandler PointerCaptureLostPublic MustInherit Event PointerCaptureLostpublic abstract event TypedEventHandler PointerCaptureLost
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerEntered PointerEntered PointerEntered PointerEntered

Occurs when the pointer enters a UI element.

public abstract event TypedEventHandler PointerEnteredpublic abstract event TypedEventHandler PointerEnteredPublic MustInherit Event PointerEnteredpublic abstract event TypedEventHandler PointerEntered
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerExited PointerExited PointerExited PointerExited

Occurs when the pointer exits a UI element.

public abstract event TypedEventHandler PointerExitedpublic abstract event TypedEventHandler PointerExitedPublic MustInherit Event PointerExitedpublic abstract event TypedEventHandler PointerExited
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerMoved PointerMoved PointerMoved PointerMoved

Occurs when the pointer is moved.

public abstract event TypedEventHandler PointerMovedpublic abstract event TypedEventHandler PointerMovedPublic MustInherit Event PointerMovedpublic abstract event TypedEventHandler PointerMoved
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerPressed PointerPressed PointerPressed PointerPressed

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

public abstract event TypedEventHandler PointerPressedpublic abstract event TypedEventHandler PointerPressedPublic MustInherit Event PointerPressedpublic abstract event TypedEventHandler PointerPressed
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerReleased PointerReleased PointerReleased PointerReleased

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

public abstract event TypedEventHandler PointerReleasedpublic abstract event TypedEventHandler PointerReleasedPublic MustInherit Event PointerReleasedpublic abstract event TypedEventHandler PointerReleased
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

PointerWheelChanged PointerWheelChanged PointerWheelChanged PointerWheelChanged

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

public abstract event TypedEventHandler PointerWheelChangedpublic abstract event TypedEventHandler PointerWheelChangedPublic MustInherit Event PointerWheelChangedpublic abstract event TypedEventHandler PointerWheelChanged
Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)