InputSourceType Enum

Definition

Identifies sources that can produce input events.

public enum InputSourceType
type InputSourceType = 
Inheritance
InputSourceType

Fields

Name Value Description
Any -256

A special input source constant that is used when filtering input devices to match devices that provide any type of input source.

ClassNone 0

The input source has no class.

It is up to the application to determine how to handle the device based on the device type.

Unknown 0

The input source is unknown.

ClassButton 1

Identifies the class button input source.

ClassPointer 2

Identifies the class pointer input source.

ClassTrackball 4

Identifies the class trackball input source.

ClassPosition 8

Identifies the class position input source.

ClassJoystick 16

Identifies the class joystick input source.

ClassMask 255

A mask for input source classes.

Each distinct input source constant has one or more input source class bits set to specify the desired interpretation for its input events.

Keyboard 257

The input source is a keyboard.

This source indicates pretty much anything that has buttons.

Dpad 513

The input source is a DPad.

Gamepad 1025

The input source is a game pad. (It may also be a SourceJoystick).

Touchscreen 4098

The input source is a touch screen pointing device.

Mouse 8194

The input source is a mouse pointing device. This code is also used for other mouse-like pointing devices such as trackpads and trackpoints.

Stylus 16386

The input source is a stylus pointing device.

BluetoothStylus 49154

Identifies the bluetooth stylus input source.

Trackball 65540

The input source is a trackball.

MouseRelative 131076

Identifies the mouse relative input source.

Touchpad 1048584

The input source is a touch pad or digitizer tablet that is not associated with a display (unlike SourceTouchscreen).

TouchNavigation 2097152

Identifies the touch navigation input source.

RotaryEncoder 4194304

Identifies the rotary encoder input source.

Joystick 16777232

The input source is a joystick. (It may also be a SourceGamepad).

Hdmi 33554433

Identifies the HDMI input source.

Sensor 67108864

Identifies the sensor input source.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to