Helper class for accessing values in
|int||SOURCE_ANY||A special input source constant that is used when filtering input devices to match devices that provide any type of input source.|
|int||SOURCE_CLASS_BUTTON||The input source has buttons or keys.|
|int||SOURCE_CLASS_JOYSTICK||The input source is a joystick.|
|int||SOURCE_CLASS_MASK||A mask for input source classes.|
|int||SOURCE_CLASS_NONE||The input source has no class.|
|int||SOURCE_CLASS_POINTER||The input source is a pointing device associated with a display.|
The input source is an absolute positioning device not associated with a display
|int||SOURCE_CLASS_TRACKBALL||The input source is a trackball navigation device.|
|int||SOURCE_DPAD||The input source is a DPad.|
|int||SOURCE_GAMEPAD||The input source is a game pad.|
|int||SOURCE_HDMI||The input source is a device connected through HDMI-based bus.|
|int||SOURCE_JOYSTICK||The input source is a joystick.|
|int||SOURCE_KEYBOARD||The input source is a keyboard.|
|int||SOURCE_MOUSE||The input source is a mouse pointing device.|
|int||SOURCE_STYLUS||The input source is a stylus pointing device.|
The input source is a touch pad or digitizer tablet that is not
associated with a display (unlike
|int||SOURCE_TOUCHSCREEN||The input source is a touch screen pointing device.|
|int||SOURCE_TOUCH_NAVIGATION||The input source is a touch device whose motions should be interpreted as navigation events.|
|int||SOURCE_TRACKBALL||The input source is a trackball.|
|int||SOURCE_UNKNOWN||The input source is unknown.|
A special input source constant that is used when filtering input devices to match devices that provide any type of input source.
A mask for input source classes. Each distinct input source constant has one or more input source class bits set to specify the desired interpretation for its input events.
The input source has no class. It is up to the application to determine how to handle the device based on the device type.
The input source is a pointing device associated with a display.
MotionEvent should be interpreted as absolute coordinates in
display units according to the
View hierarchy. Pointer down/up
the finger touches the display or when the selection button is pressed/released.
getMotionRange(int) to query the range of the pointing
device. Some devices permit
touches outside the display area so the effective range may be somewhat smaller or larger
than the actual display size.
The input source is a trackball navigation device.
MotionEvent should be interpreted as relative movements in
units used for navigation purposes. Pointer down/up indicates when the selection button
getMotionRange(int) to query the range of motion.
The input source is a DPad.
The input source is a device connected through HDMI-based bus. The key comes in through HDMI-CEC or MHL signal line, and is treated as if it were generated by a locally connected DPAD or keyboard.
The input source is a mouse pointing device. This code is also used for other mouse-like pointing devices such as trackpads and trackpoints.
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
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
TOOL_TYPE_FINGER and another pointer with tool type
TOOL_TYPE_STYLUS. So it is important to examine
the tool type of each pointer, regardless of the source reported
The input source is a touch screen pointing device.
The input source is a touch device whose motions should be interpreted as navigation events. For example, an upward swipe should be as an upward focus traversal in the same manner as pressing up on a D-Pad would be. Swipes to the left, right and down should be treated in a similar manner.
The input source is a trackball.
The input source is unknown.