共用方式為


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

按鈕(或按鈕的組合)。

傳回

如果按下指定的按鈕,則為 True。

屬性

備註

檢查是否按下滑鼠或手寫筆按鈕(或按鈕的組合)。

android.view.MotionEvent.isButtonPressed(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

另請參閱