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.
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”.