InputDevice.SourceStylus 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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_STYLUS
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。