MotionEvent.Source Property
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.
Gets the source of the event. Note: for events from touchpads, this method will normally only return InputDevice.SOURCE_MOUSE . To distinguish touchpad events from mouse events, check the return value of getToolType(int) for pointer 0. If it's TOOL_TYPE_FINGER , the event is from a touchpad; if it's TOOL_TYPE_MOUSE , the event is from a mouse. The exception to this is when the touchpad is captured , in which case InputDevice.SOURCE_TOUCHPAD will be returned as expected.
public override Android.Views.InputSourceType Source { [Android.Runtime.Register("getSource", "()I", "")] get; }
[<get: Android.Runtime.Register("getSource", "()I", "")>]
member this.Source : Android.Views.InputSourceType
Property Value
- Attributes
Remarks
Additional information about the source.
Java documentation for android.view.MotionEvent.getSource().
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.