共用方式為


InputDevice.SourceStylus 欄位

定義

警告

This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.

輸入來源是指向裝置的手寫筆。

[Android.Runtime.Register("SOURCE_STYLUS")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)]
public const Android.Views.InputSourceType SourceStylus = 16386;
[<Android.Runtime.Register("SOURCE_STYLUS")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)>]
val mutable SourceStylus : Android.Views.InputSourceType

欄位值

Value = 16386

實作

屬性

備註

輸入來源是指向裝置的手寫筆。

請注意,此位只是表示輸入設備能夠從手寫筆取得輸入。 若要判斷指定的觸控事件是否由手寫筆產生,請檢查針對每個個別指標傳 MotionEvent#getToolType(int) 回的工具類型。

單一觸控事件可能會有多個具有不同工具類型的指標,例如具有一個具有工具類型的 MotionEvent#TOOL_TYPE_FINGER 指標的事件,以及另一個具有工具類型的 MotionEvent#TOOL_TYPE_STYLUS指標。 因此,不論 所 MotionEvent#getSource()報告的來源為何,檢查每個指標的工具類型都很重要。

android.view.InputDevice.SOURCE_STYLUSJava 檔。

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

適用於

另請參閱