public static final class

InputDevice.MotionRange

extends Object
java.lang.Object
   ↳ android.view.InputDevice.MotionRange

Class Overview

Provides information about the range of values for a particular MotionEvent coordinate.

Summary

Public Methods
float getFlat()
Gets the extent of the center flat position with respect to this coordinate.
float getFuzz()
Gets the error tolerance for input device measurements with respect to this coordinate.
float getMax()
Gets the maximum value for the coordinate.
float getMin()
Gets the minimum value for the coordinate.
float getRange()
Gets the range of the coordinate (difference between maximum and minimum).
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public float getFlat ()

Since: API Level 9

Gets the extent of the center flat position with respect to this coordinate. 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.

Returns
  • The extent of the center flat position.

public float getFuzz ()

Since: API Level 9

Gets the error tolerance for input device measurements with respect to this coordinate. 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.

Returns
  • The error tolerance.

public float getMax ()

Since: API Level 9

Gets the maximum value for the coordinate.

Returns
  • The minimum value.

public float getMin ()

Since: API Level 9

Gets the minimum value for the coordinate.

Returns
  • The minimum value.

public float getRange ()

Since: API Level 9

Gets the range of the coordinate (difference between maximum and minimum).

Returns
  • The range of values.