Experimental: this API is experimental and might be changed or removed in the future.

MouseEventBase<T0>.button

切换到手册
public int button ;

描述

表示按下的鼠标按钮的整数。0 为左侧,1 为右侧,2 为中间。