December 2019
Beginner
464 pages
10h 31m
English
In This Chapter
• Learn how to listen to the mouse using the various mouse events
• Understand the MouseEvent object
• Deal with the Mouse Wheel
One of the most common ways people (and possibly cats) interact with their computers is by using a pointing device known as a mouse (Figure 33.1).
FIGURE 33.1
Cats probably like them too.
This magical device allows you to accomplish great things by moving it around with your hands and clicking around with your fingers. Using them as a, um...user is one thing. As a developer, trying to make your code work with a mouse is something else. That’s where this chapter comes in.