belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
InputDeviceCompat
  public
  
  final
  
  class
  InputDeviceCompat
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.v4.view.InputDeviceCompat | 
Helper class for accessing values in InputDevice.
Summary
| Constants | |
|---|---|
| int | SOURCE_ANYA special input source constant that is used when filtering input devices to match devices that provide any type of input source. | 
| int | SOURCE_CLASS_BUTTONThe input source has buttons or keys. | 
| int | SOURCE_CLASS_JOYSTICKThe input source is a joystick. | 
| int | SOURCE_CLASS_MASKA mask for input source classes. | 
| int | SOURCE_CLASS_NONEThe input source has no class. | 
| int | SOURCE_CLASS_POINTERThe input source is a pointing device associated with a display. | 
| int | SOURCE_CLASS_POSITIONThe input source is an absolute positioning device not associated with a display
 (unlike  | 
| int | SOURCE_CLASS_TRACKBALLThe input source is a trackball navigation device. | 
| int | SOURCE_DPADThe input source is a DPad. | 
| int | SOURCE_GAMEPADThe input source is a game pad. | 
| int | SOURCE_HDMIThe input source is a device connected through HDMI-based bus. | 
| int | SOURCE_JOYSTICKThe input source is a joystick. | 
| int | SOURCE_KEYBOARDThe input source is a keyboard. | 
| int | SOURCE_MOUSEThe input source is a mouse pointing device. | 
| int | SOURCE_ROTARY_ENCODERThe input source is a rotating encoder device whose motions should be interpreted as akin to those of a scroll wheel. | 
| int | SOURCE_STYLUSThe input source is a stylus pointing device. | 
| int | SOURCE_TOUCHPADThe input source is a touch pad or digitizer tablet that is not
 associated with a display (unlike  | 
| int | SOURCE_TOUCHSCREENThe input source is a touch screen pointing device. | 
| int | SOURCE_TOUCH_NAVIGATIONThe input source is a touch device whose motions should be interpreted as navigation events. | 
| int | SOURCE_TRACKBALLThe input source is a trackball. | 
| int | SOURCE_UNKNOWNThe input source is unknown. | 
| Inherited methods | |
|---|---|
|  From
class 
  
    java.lang.Object
  
 | |
Constants
SOURCE_ANY
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.
Constant Value: -256 (0xffffff00)
SOURCE_CLASS_BUTTON
int SOURCE_CLASS_BUTTON
The input source has buttons or keys.
 Examples: SOURCE_KEYBOARD, SOURCE_DPAD.
 A KeyEvent should be interpreted as a button or key press.
Constant Value: 1 (0x00000001)
SOURCE_CLASS_JOYSTICK
int SOURCE_CLASS_JOYSTICK
The input source is a joystick.
 A MotionEvent should be interpreted as absolute joystick movements.
 Use getMotionRange(int) to query the range of positions.
Constant Value: 16 (0x00000010)
SOURCE_CLASS_MASK
int SOURCE_CLASS_MASK
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.
Constant Value: 255 (0x000000ff)
SOURCE_CLASS_NONE
int SOURCE_CLASS_NONE
The input source has no class. It is up to the application to determine how to handle the device based on the device type.
Constant Value: 0 (0x00000000)
SOURCE_CLASS_POINTER
int SOURCE_CLASS_POINTER
The input source is a pointing device associated with a display.
 Examples: SOURCE_TOUCHSCREEN, SOURCE_MOUSE.
 A MotionEvent should be interpreted as absolute coordinates in
 display units according to the View hierarchy.  Pointer down/up
 indicated when
 the finger touches the display or when the selection button is pressed/released.
 Use 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.
Constant Value: 2 (0x00000002)
SOURCE_CLASS_POSITION
int SOURCE_CLASS_POSITION
The input source is an absolute positioning device not associated with a display
 (unlike SOURCE_CLASS_POINTER).
 A MotionEvent should be interpreted as absolute coordinates in
 device-specific surface units.
 Use getMotionRange(int) to query the range of positions.
Constant Value: 8 (0x00000008)
SOURCE_CLASS_TRACKBALL
int SOURCE_CLASS_TRACKBALL
The input source is a trackball navigation device.
 Examples: SOURCE_TRACKBALL.
 A MotionEvent should be interpreted as relative movements in
 device-specific
 units used for navigation purposes.  Pointer down/up indicates when the selection button
 is pressed/released.
 Use getMotionRange(int) to query the range of motion.
Constant Value: 4 (0x00000004)
SOURCE_DPAD
int SOURCE_DPAD
The input source is a DPad.
See also:
Constant Value: 513 (0x00000201)
SOURCE_GAMEPAD
int SOURCE_GAMEPAD
The input source is a game pad.
 (It may also be a SOURCE_JOYSTICK).
See also:
Constant Value: 1025 (0x00000401)
SOURCE_HDMI
int SOURCE_HDMI
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.
Constant Value: 33554433 (0x02000001)
SOURCE_JOYSTICK
int SOURCE_JOYSTICK
The input source is a joystick.
 (It may also be a SOURCE_GAMEPAD).
See also:
Constant Value: 16777232 (0x01000010)
SOURCE_KEYBOARD
int SOURCE_KEYBOARD
The input source is a keyboard.
 This source indicates pretty much anything that has buttons.  Use
 getKeyboardType() to determine whether the keyboard has
 alphabetic keys
 and can be used to enter text.
See also:
Constant Value: 257 (0x00000101)
SOURCE_MOUSE
int SOURCE_MOUSE
The input source is a mouse pointing device. This code is also used for other mouse-like pointing devices such as trackpads and trackpoints.
See also:
Constant Value: 8194 (0x00002002)
SOURCE_ROTARY_ENCODER
int SOURCE_ROTARY_ENCODER
The input source is a rotating encoder device whose motions should be interpreted as akin to those of a scroll wheel.
See also:
Constant Value: 4194304 (0x00400000)
SOURCE_STYLUS
int SOURCE_STYLUS
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 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
 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
 by getSource().
 
See also:
Constant Value: 16386 (0x00004002)
SOURCE_TOUCHPAD
int SOURCE_TOUCHPAD
The input source is a touch pad or digitizer tablet that is not
 associated with a display (unlike SOURCE_TOUCHSCREEN).
See also:
Constant Value: 1048584 (0x00100008)
SOURCE_TOUCHSCREEN
int SOURCE_TOUCHSCREEN
The input source is a touch screen pointing device.
See also:
Constant Value: 4098 (0x00001002)
SOURCE_TOUCH_NAVIGATION
int SOURCE_TOUCH_NAVIGATION
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.
See also:
Constant Value: 2097152 (0x00200000)
SOURCE_TRACKBALL
int SOURCE_TRACKBALL
The input source is a trackball.
See also:
Constant Value: 65540 (0x00010004)
SOURCE_UNKNOWN
int SOURCE_UNKNOWN
The input source is unknown.
Constant Value: 0 (0x00000000)
- Annotations
- Interfaces- ActionProvider.VisibilityListener
- AsyncLayoutInflater.OnInflateFinishedListener
- LayoutInflaterFactory
- MenuItemCompat.OnActionExpandListener
- NestedScrollingChild
- NestedScrollingChild2
- NestedScrollingParent
- NestedScrollingParent2
- OnApplyWindowInsetsListener
- ScrollingView
- TintableBackgroundView
- ViewPager.OnAdapterChangeListener
- ViewPager.OnPageChangeListener
- ViewPager.PageTransformer
- ViewPropertyAnimatorListener
- ViewPropertyAnimatorUpdateListener
 
- Classes- AbsSavedState
- AccessibilityDelegateCompat
- ActionProvider
- AsyncLayoutInflater
- GestureDetectorCompat
- GravityCompat
- InputDeviceCompat
- LayoutInflaterCompat
- MarginLayoutParamsCompat
- MenuCompat
- MenuItemCompat
- MotionEventCompat
- NestedScrollingChildHelper
- NestedScrollingParentHelper
- PagerAdapter
- PagerTabStrip
- PagerTitleStrip
- PointerIconCompat
- ScaleGestureDetectorCompat
- VelocityTrackerCompat
- ViewCompat
- ViewConfigurationCompat
- ViewGroupCompat
- ViewPager
- ViewPager.LayoutParams
- ViewPager.SavedState
- ViewPager.SimpleOnPageChangeListener
- ViewParentCompat
- ViewPropertyAnimatorCompat
- ViewPropertyAnimatorListenerAdapter
- WindowCompat
- WindowInsetsCompat
 
