android.view
Class InputDevice

java.lang.Object
  extended by android.view.InputDevice
All Implemented Interfaces:
Parcelable

public final class InputDevice
extends Object
implements Parcelable


Nested Class Summary
static class InputDevice.MotionRange
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<InputDevice> CREATOR
           
static int KEYBOARD_TYPE_ALPHABETIC
           
static int KEYBOARD_TYPE_NON_ALPHABETIC
           
static int KEYBOARD_TYPE_NONE
           
static int MOTION_RANGE_ORIENTATION
           
static int MOTION_RANGE_PRESSURE
           
static int MOTION_RANGE_SIZE
           
static int MOTION_RANGE_TOOL_MAJOR
           
static int MOTION_RANGE_TOOL_MINOR
           
static int MOTION_RANGE_TOUCH_MAJOR
           
static int MOTION_RANGE_TOUCH_MINOR
           
static int MOTION_RANGE_X
           
static int MOTION_RANGE_Y
           
static int SOURCE_ANY
           
static int SOURCE_CLASS_BUTTON
           
static int SOURCE_CLASS_JOYSTICK
           
static int SOURCE_CLASS_MASK
           
static int SOURCE_CLASS_POINTER
           
static int SOURCE_CLASS_POSITION
           
static int SOURCE_CLASS_TRACKBALL
           
static int SOURCE_DPAD
           
static int SOURCE_GAMEPAD
           
static int SOURCE_JOYSTICK
           
static int SOURCE_KEYBOARD
           
static int SOURCE_MOUSE
           
static int SOURCE_STYLUS
           
static int SOURCE_TOUCHPAD
           
static int SOURCE_TOUCHSCREEN
           
static int SOURCE_TRACKBALL
           
static int SOURCE_UNKNOWN
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 int describeContents()
           
static InputDevice getDevice(int id)
           
static int[] getDeviceIds()
           
 int getId()
           
 int getKeyboardType()
           
 KeyCharacterMap getKeyCharacterMap()
           
 InputDevice.MotionRange getMotionRange(int axis)
           
 InputDevice.MotionRange getMotionRange(int axis, int source)
           
 List<InputDevice.MotionRange> getMotionRanges()
           
 String getName()
           
 int getSources()
           
 String toString()
           
 void writeToParcel(Parcel out, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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.