Input.GetMouseButtonDown Manual     Reference     Scripting  
Scripting > Runtime Classes > Input
Input.GetMouseButtonDown

static function GetMouseButtonDown (button : int) : bool

Description

Returns true during the frame the user pressed the given mouse button.

It will not return true until the user has released the mouse button and pressed it again. button values are 0 for left button, 1 for right button, 2 for the middle button.