Java android.view InputDevice fields, constructors, methods, implement or subclass

Example usage for Java android.view InputDevice fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view InputDevice.

The text is from its open source code.

Field

intSOURCE_CLASS_BUTTON
The input source has buttons or keys.
intSOURCE_CLASS_POINTER
The input source is a pointing device associated with a display.
intSOURCE_CLASS_TRACKBALL
The input source is a trackball navigation device.
intSOURCE_CLASS_POSITION
The input source is an absolute positioning device not associated with a display (unlike #SOURCE_CLASS_POINTER ).
intSOURCE_CLASS_JOYSTICK
The input source is a joystick.
intSOURCE_UNKNOWN
The input source is unknown.
intSOURCE_KEYBOARD
The input source is a keyboard.
intSOURCE_DPAD
The input source is a DPad.
intSOURCE_GAMEPAD
The input source is a game pad.
intSOURCE_TOUCHSCREEN
The input source is a touch screen pointing device.
intSOURCE_MOUSE
The input source is a mouse pointing device.
intSOURCE_STYLUS
The input source is a stylus pointing device.
intSOURCE_TRACKBALL
The input source is a trackball.
intSOURCE_TOUCHPAD
The input source is a touch pad or digitizer tablet that is not associated with a display (unlike #SOURCE_TOUCHSCREEN ).
intSOURCE_TOUCH_NAVIGATION
The input source is a touch device whose motions should be interpreted as navigation events.
intSOURCE_JOYSTICK
The input source is a joystick.

Method

intgetControllerNumber()
The controller number for a given input device.
InputDevicegetDevice(int id)
Gets information about the input device with the specified id.
int[]getDeviceIds()
Gets the ids of all input devices in the system.
intgetId()
Gets the input device id.
MotionRangegetMotionRange(int axis, int source)
Gets information about the range of values for a particular MotionEvent axis used by a particular source on the device.
ListgetMotionRanges()
Gets the ranges for all axes supported by the device.
StringgetName()
Gets the name of this input device.
intgetSources()
Gets the input sources supported by this input device as a combined bitfield.
VibratorgetVibrator()
Gets the vibrator service associated with the device, if there is one.
booleanisVirtual()
Returns true if the device is a virtual input device rather than a real one, such as the virtual keyboard (see KeyCharacterMap#VIRTUAL_KEYBOARD ).
StringtoString()