Input Device Configuration

There are a number of properties that can be specified for an input device.

PropertyTypeValue
audio.micboolean (0 or 1)A boolean represented numerically that indicates whether the device has a microphone.
device.additionalSysfsLedsNodestringA string representing the path to search for device lights to be used in addition to searching the device node itself for lights.
device.internalboolean (0 or 1)A boolean represented numerically that indicates if this input device is part of the device as opposed to be externally attached.
device.typestringA string representing if the device is of a certain type. Valid values are:
-rotaryEncoder
-externalStylus
device.wakeboolean (0 or 1)A boolean that indicates if the device should wake the screen when an event is received.
device.resfloatTicks per radian for rotary encoders.
device.scalingFactorfloatA scaling factor to reduce unintentional flings for rotary encoders.
keyboard.doNotWakeByDefaultboolean (0 or 1)A boolean that indicates if keys from this keyboard should not wake the device by default.
keyboard.handlesKeyRepeatboolean (0 or 1)A boolean that indicates if key repeats are handled by the hardware keyboard itself.
keyboard.orientationAwareboolean (0 or 1)A boolean that indicates if directional keys should be rotated according to the display orientation.
keyboard.swapVolumeKeys.rotation0
keyboard.swapVolumeKeys.rotation90
keyboard.swapVolumeKeys.rotation180
keyboard.swapVolumeKeys.rotation270
stringA string representing whether volume keys should be swapped for the specified display orientation. Valid values are:
-never
-slateDeviceState: Only swap volume keys when the device is in a slate state (determined by the device state manager).
-always
rotary_encoder.slop_thresholdfloatSlop threshold for rotary encoder.
rotary_encoder.slop_duration_msintegerSlop duration in milliseconds for rotary encoder.
rotary_encoder.min_rotations_to_logfloatMinimum number of rotations to log for telemetry.
device.viewBehavior_smoothScrollboolean (0 or 1)A boolean that indicates if scrolling from the device should be smooth.
device.viewBehavior_primaryDirectionalMotionAxisstringA string representing the primary directional motion axis for the device, parsed using MotionEvent::getAxisFromLabel. Example valid values include “X”, “Y”, and “HAT_X”.