HL.DeviceSpec

class HL.DeviceSpec

Table accepted by hl.device().

Shape

{
    name = string,
    -- device-specific input options
}

Fields

namestring

Device name. Required. Spaces are converted to hyphens before storage.

Additional fields

All other fields are input-device configuration keys. The available fields are listed by the generated stub and include keyboard, pointer, touchpad, tablet, touch, and virtual-keyboard options such as kb_layout, sensitivity, natural_scroll, tap_to_click, region_size, output, and enabled.

Used by

hl.device()

Configure a named input device.