The mouse_x and mouse_y variables
Accessing
mouse_x
and
mouse_y
in
Listing 3
:
Returns the horizontal and vertical coordinates of the mouse pointer
Relative to the upper-left corner of the black graphics window in
Figure 1
.