MotionEvent.IsButtonPressed(MotionEventButtonState) 方法

定义

检查是否按下了鼠标或触笔按钮(或按钮的组合)。

[Android.Runtime.Register("isButtonPressed", "(I)Z", "")]
public bool IsButtonPressed(Android.Views.MotionEventButtonState button);
[<Android.Runtime.Register("isButtonPressed", "(I)Z", "")>]
member this.IsButtonPressed : Android.Views.MotionEventButtonState -> bool

参数

button
MotionEventButtonState

按钮(或按钮的组合)。

返回

如此 如果按下了指定的按钮。

属性

注解

检查是否按下了鼠标或触笔按钮(或按钮的组合)。

适用于 . 的 android.view.MotionEvent.isButtonPressed(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅