MotionEvent.IsButtonPressed(MotionEventButtonState) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查是否按下了鼠标或触笔按钮(或按钮的组合)。
[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 属性许可证中所述的术语使用。