共用方式為


MotionEventButtonState 列舉

定義

列舉數種類型所傳回的值,並當作 F:Android.Views.MotionEvent.IsButtonPressedF:Android.Views.MotionEvent.Obtain 成員的參數。

public enum MotionEventButtonState
type MotionEventButtonState = 
繼承
MotionEventButtonState

欄位

Back 8

按鈕常數:按下 [上一頁] 按鈕(滑鼠返回按鈕)。

Forward 16

按鈕常數:按下 [向前] 按鈕(滑鼠向前按鈕)。

Primary 1

按鈕常數:主要按鈕(滑鼠左鍵)。

此按鈕常數未設定,以回應手指或手寫筆提示的簡單觸控。

Secondary 2

按鈕常數:次要按鈕(滑鼠右鍵、手寫筆第一個按鈕)。

StylusPrimary 32
StylusSecondary 64
Tertiary 4

按鈕常數:第三個按鈕(滑鼠中間按鈕、手寫筆第二個按鈕)。

備註

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

適用於