Mouse Input Guide
The Mouse in Game Programming
Mouse input is composed of three different parts : the position of the mouse cursor, mouse buttons, and the center wheel.
The mouse cursor is the pointer with which you point. The mouse cursor has two components. The mouse cursor image itself and the position of the mouse cursor on the screen. The mouse cursor image can be made visible or invisible using the Mouse function and the mouse position can be checked using MouseX() and MouseY().