UWP: better mouse interaction support

This commit is contained in:
Paul Rouget 2019-10-25 08:13:00 +02:00
parent f78ca5794a
commit f2f8223cf1
9 changed files with 101 additions and 14 deletions

View file

@ -119,9 +119,12 @@ private:
}
void
OnSurfaceClicked(IInspectable const &,
OnSurfaceTapped(IInspectable const &,
Windows::UI::Xaml::Input::TappedRoutedEventArgs const &);
void OnSurfacePointerPressed(IInspectable const &,
Windows::UI::Xaml::Input::PointerRoutedEventArgs const &);
void OnSurfaceManipulationDelta(
IInspectable const &,
Windows::UI::Xaml::Input::ManipulationDeltaRoutedEventArgs const &);
@ -142,6 +145,8 @@ private:
CONDITION_VARIABLE mGLCondVar;
std::unique_ptr<Concurrency::task<void>> mLoopTask;
hstring mArgs;
std::optional<servo::Servo::MouseButton> mPressedMouseButton = {};
};
} // namespace winrt::ServoApp::implementation