The mouseInfo function
The mouseInfo function begins in Listing 3.
Listing 3. Beginning of the mouseInfo function.
bool mouseInfo(int *xCoor,int *yCoor,int *color){
//Get current mouse coordinates and send back via
// pointer variables.
*xCoor = mouse_x;
*yCoor = mouse_y;
|