Application options

See Runtime Config for more information.

interface Options {
    debug: boolean;
    enablePointer: boolean;
    keys: KeyMap;
    stage: Partial<Lightning.Stage.Options>;
}

Properties

debug: boolean

Enables debug mode, if set to true

Shows changes to the focus path for debug purposes

See Mouse Input for more information.

false

enablePointer: boolean

Enables mouse input, if set to true

See Mouse Input for more information.

false

keys: KeyMap

Sets a custom keymap for use by the application

A KeyMap is just a object keyed by key codes

See Key Handling - Key Mapping for more information.

{
38: "Up",
40: "Down",
37: "Left",
39: "Right",
13: "Enter",
8: "Back",
27: "Exit"
}
stage: Partial<Lightning.Stage.Options>

Stage options for the application