Mouse Input
A common question from developers learning about universal apps is, “Where are the mouse events?” And now you know the answer: Mouse events are, for the most part, the same pointer events and gesture events used for touch. If you look back at these events, you’ll see that they map to the behavior of a mouse. Furthermore, even mouse dragging is treated as translation and holding Ctrl while scrolling the mouse wheel is treated as zooming in the manipulation events.
Of course, there are some mouse-specific APIs exposed for cases in which the common abstraction isn’t rich enough, which this section discusses. Let’s quickly go through the same areas covered by the “Touch Input” section but examine only the mouse-specific APIs.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access