android.view
Class InputDevice
java.lang.Object
android.view.InputDevice
- All Implemented Interfaces:
- Parcelable
public final class InputDevice
- extends Object
- implements Parcelable
SOURCE_CLASS_MASK
public static final int SOURCE_CLASS_MASK
- See Also:
- Constant Field Values
SOURCE_CLASS_BUTTON
public static final int SOURCE_CLASS_BUTTON
- See Also:
- Constant Field Values
SOURCE_CLASS_POINTER
public static final int SOURCE_CLASS_POINTER
- See Also:
- Constant Field Values
SOURCE_CLASS_TRACKBALL
public static final int SOURCE_CLASS_TRACKBALL
- See Also:
- Constant Field Values
SOURCE_CLASS_POSITION
public static final int SOURCE_CLASS_POSITION
- See Also:
- Constant Field Values
SOURCE_CLASS_JOYSTICK
public static final int SOURCE_CLASS_JOYSTICK
- See Also:
- Constant Field Values
SOURCE_UNKNOWN
public static final int SOURCE_UNKNOWN
- See Also:
- Constant Field Values
SOURCE_KEYBOARD
public static final int SOURCE_KEYBOARD
- See Also:
- Constant Field Values
SOURCE_DPAD
public static final int SOURCE_DPAD
- See Also:
- Constant Field Values
SOURCE_GAMEPAD
public static final int SOURCE_GAMEPAD
- See Also:
- Constant Field Values
SOURCE_TOUCHSCREEN
public static final int SOURCE_TOUCHSCREEN
- See Also:
- Constant Field Values
SOURCE_MOUSE
public static final int SOURCE_MOUSE
- See Also:
- Constant Field Values
SOURCE_STYLUS
public static final int SOURCE_STYLUS
- See Also:
- Constant Field Values
SOURCE_TRACKBALL
public static final int SOURCE_TRACKBALL
- See Also:
- Constant Field Values
SOURCE_TOUCHPAD
public static final int SOURCE_TOUCHPAD
- See Also:
- Constant Field Values
SOURCE_JOYSTICK
public static final int SOURCE_JOYSTICK
- See Also:
- Constant Field Values
SOURCE_ANY
public static final int SOURCE_ANY
- See Also:
- Constant Field Values
MOTION_RANGE_X
public static final int MOTION_RANGE_X
- See Also:
- Constant Field Values
MOTION_RANGE_Y
public static final int MOTION_RANGE_Y
- See Also:
- Constant Field Values
MOTION_RANGE_PRESSURE
public static final int MOTION_RANGE_PRESSURE
- See Also:
- Constant Field Values
MOTION_RANGE_SIZE
public static final int MOTION_RANGE_SIZE
- See Also:
- Constant Field Values
MOTION_RANGE_TOUCH_MAJOR
public static final int MOTION_RANGE_TOUCH_MAJOR
- See Also:
- Constant Field Values
MOTION_RANGE_TOUCH_MINOR
public static final int MOTION_RANGE_TOUCH_MINOR
- See Also:
- Constant Field Values
MOTION_RANGE_TOOL_MAJOR
public static final int MOTION_RANGE_TOOL_MAJOR
- See Also:
- Constant Field Values
MOTION_RANGE_TOOL_MINOR
public static final int MOTION_RANGE_TOOL_MINOR
- See Also:
- Constant Field Values
MOTION_RANGE_ORIENTATION
public static final int MOTION_RANGE_ORIENTATION
- See Also:
- Constant Field Values
KEYBOARD_TYPE_NONE
public static final int KEYBOARD_TYPE_NONE
- See Also:
- Constant Field Values
KEYBOARD_TYPE_NON_ALPHABETIC
public static final int KEYBOARD_TYPE_NON_ALPHABETIC
- See Also:
- Constant Field Values
KEYBOARD_TYPE_ALPHABETIC
public static final int KEYBOARD_TYPE_ALPHABETIC
- See Also:
- Constant Field Values
CREATOR
public static final Parcelable.Creator<InputDevice> CREATOR
getDevice
public static InputDevice getDevice(int id)
getDeviceIds
public static int[] getDeviceIds()
getId
public int getId()
getName
public String getName()
getSources
public int getSources()
getKeyboardType
public int getKeyboardType()
getKeyCharacterMap
public KeyCharacterMap getKeyCharacterMap()
getMotionRange
public InputDevice.MotionRange getMotionRange(int axis)
getMotionRange
public InputDevice.MotionRange getMotionRange(int axis,
int source)
getMotionRanges
public List<InputDevice.MotionRange> getMotionRanges()
writeToParcel
public void writeToParcel(Parcel out,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
describeContents
public int describeContents()
- Specified by:
describeContents
in interface Parcelable
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2012. All Rights Reserved.