Event.button Manual     Reference     Scripting  
Scripting > Runtime Classes > Event
Event.button

var button : int

Description

Which mouse button was pressed.

0 means left mouse button, 1 means right mouse button, 2 means middle mouse button. Used in EventType.MouseDown, EventType.MouseUp events.