語言

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()。

Java 文件 android.view.InputDevice.SOURCE_STYLUS。

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

適用於

另請參閱