MouseDown

<< Click to Display Table of Contents >>

 

MouseDown

MouseDown(Button, ShiftState, MouseX, MouseY)

This event occurs when any mouse button is pressed on an object.

Variables of the MouseDown event

Name

Description

Button

Displays the pressed mouse button. Possible values are 1: Mouse left button pressed, 2: Mouse right button pressed, or 4: Mouse middle button pressed

ShiftState

Displays the key pressed along with the mouse button. Possible values are 4: SHIFT key, 8: CTRL key, or 12: CTRL + SHIFT keys

MouseX

Displays the X coordinate where the mouse button was clicked

MouseY

Displays the Y coordinate where the mouse button was clicked

Was this page useful?