InputSourceType Enum

Definition

Enumerates values returned by several types and taken as a parameter of several types.

public enum InputSourceType
type InputSourceType = 
Inheritance
InputSourceType

Fields

Any -256

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

BluetoothStylus 49154
ClassButton 1
ClassJoystick 16
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.

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.

ClassPointer 2
ClassPosition 8
ClassTrackball 4
Dpad 513

The input source is a DPad.

Gamepad 1025

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

Hdmi 33554433
Joystick 16777232

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

Keyboard 257

The input source is a keyboard.

This source indicates pretty much anything that has buttons.

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.

MouseRelative 131076
RotaryEncoder 4194304
Sensor 67108864
Stylus 16386

The input source is a stylus pointing device.

TouchNavigation 2097152
Touchpad 1048584

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

Touchscreen 4098

The input source is a touch screen pointing device.

Trackball 65540

The input source is a trackball.

Unknown 0

The input source is unknown.

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