java.lang.Object | |
↳ | android.view.InputDevice.MotionRange |
Provides information about the range of values for a particular
MotionEvent
axis.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Gets the axis id.
|
||||||||||
|
Gets the extent of the center flat position with respect to this axis.
|
||||||||||
|
Gets the error tolerance for input device measurements with respect to this axis.
|
||||||||||
|
Gets the inclusive maximum value for the axis.
|
||||||||||
|
Gets the inclusive minimum value for the axis.
|
||||||||||
|
Gets the range of the axis (difference between maximum and minimum).
|
||||||||||
|
Gets the resolution for input device measurements with respect to this axis.
|
||||||||||
|
Gets the source for which the axis is defined.
|
||||||||||
|
Determines whether the event is from the given source.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Gets the extent of the center flat position with respect to this axis.
For example, a flat value of 8 means that the center position is between -8 and +8. This value is mainly useful for calibrating self-centering devices.
Gets the error tolerance for input device measurements with respect to this axis.
For example, a value of 2 indicates that the measured value may be up to +/- 2 units away from the actual value due to noise and device sensitivity limitations.
Gets the inclusive maximum value for the axis.
Gets the inclusive minimum value for the axis.
Gets the range of the axis (difference between maximum and minimum).
Gets the resolution for input device measurements with respect to this axis.
Gets the source for which the axis is defined.
Determines whether the event is from the given source.
source |
The input source to check against. This can be a specific device type,
such as
SOURCE_TOUCH_NAVIGATION
, or a more generic device class,
such as
SOURCE_CLASS_POINTER
.
|
---|