-api-id | -api-type |
---|---|
P:Windows.UI.Core.PointerEventArgs.CurrentPoint |
winrt property |
Gets the pointer data of the last pointer event.
Information about the state and screen position of the pointer.
CurrentPoint corresponds to the last point retrieved by GetIntermediatePoints.
void OnPointerPressed(Windows::UI::Core::CoreWindow const& /* sender */, Windows::UI::Core::PointerEventArgs const& args)
{
Windows::UI::Input::PointerPoint currentPoint{ args.CurrentPoint() };
}
void MyCoreWindowEvents::GetPointerInfo(
_In_ PointerEventArgs^ args)
{
Windows::UI::Input::PointerPoint^ currentPoint = args->CurrentPoint;
}