Share via


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

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
ClassPointer 2
ClassTrackball 4
ClassPosition 8
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.

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
Trackball 65540

The input source is a trackball.

MouseRelative 131076
Touchpad 1048584

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

TouchNavigation 2097152
RotaryEncoder 4194304
Joystick 16777232

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

Hdmi 33554433
Sensor 67108864

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