InputDevice.SourceStylus Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.
The input source is a stylus pointing device.
[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
Field Value
Value = 16386Implements
- Attributes
Remarks
The input source is a stylus pointing device.
Note that this bit merely indicates that an input device is capable of obtaining input from a stylus. To determine whether a given touch event was produced by a stylus, examine the tool type returned by MotionEvent#getToolType(int)
for each individual pointer.
A single touch event may multiple pointers with different tool types, such as an event that has one pointer with tool type MotionEvent#TOOL_TYPE_FINGER
and another pointer with tool type MotionEvent#TOOL_TYPE_STYLUS
. So it is important to examine the tool type of each pointer, regardless of the source reported by MotionEvent#getSource()
.
Java documentation for android.view.InputDevice.SOURCE_STYLUS
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.