Contents

buttonNumber

The button number for a mouse event.

Declaration

var buttonNumber: Int { get }

Discussion

This property is intended for use with the NSOtherMouseDown, NSOtherMouseUp, and NSOtherMouseDragged events, but will return values for NSLeftMouse... and NSRightMouse... events also. If this event is not a mouse event, the property is set to 0.

See Also

Getting mouse event information