There are a number of properties that can be specified for an input device.
| Property | Type | Value |
|---|---|---|
audio.mic | boolean (0 or 1) | A boolean represented numerically that indicates whether the device has a microphone. |
device.additionalSysfsLedsNode | string | A string representing the path to search for device lights to be used in addition to searching the device node itself for lights. |
device.internal | boolean (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.type | string | A string representing if the device is of a certain type. Valid values are: - rotaryEncoder- externalStylus |
device.wake | boolean (0 or 1) | A boolean that indicates if the device should wake the screen when an event is received. |
device.res | float | Ticks per radian for rotary encoders. |
device.scalingFactor | float | A scaling factor to reduce unintentional flings for rotary encoders. |
keyboard.doNotWakeByDefault | boolean (0 or 1) | A boolean that indicates if keys from this keyboard should not wake the device by default. |
keyboard.handlesKeyRepeat | boolean (0 or 1) | A boolean that indicates if key repeats are handled by the hardware keyboard itself. |
keyboard.orientationAware | boolean (0 or 1) | A boolean that indicates if directional keys should be rotated according to the display orientation. |
keyboard.swapVolumeKeys.rotation0keyboard.swapVolumeKeys.rotation90keyboard.swapVolumeKeys.rotation180keyboard.swapVolumeKeys.rotation270 | string | A 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_threshold | float | Slop threshold for rotary encoder. |
rotary_encoder.slop_duration_ms | integer | Slop duration in milliseconds for rotary encoder. |
rotary_encoder.min_rotations_to_log | float | Minimum number of rotations to log for telemetry. |
device.viewBehavior_smoothScroll | boolean (0 or 1) | A boolean that indicates if scrolling from the device should be smooth. |
device.viewBehavior_primaryDirectionalMotionAxis | string | A string representing the primary directional motion axis for the device, parsed using MotionEvent::getAxisFromLabel. Example valid values include “X”, “Y”, and “HAT_X”. |