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

static function GetMouseButton (button : int) : bool

Description

Returns whether the the given mouse button is held down.

/button/ values are 0 for left button, 1 for right button, 2 for the middle button.