Controller-device-list container
From TrainzOnline
The controller-device-list container is a config.txt file entry used by the controllers tag in tni-controls-plugin assets. It provides the specification for one or more hardware controller devices, e.g. a RailDriver controller, a joystick, a gamepad, etc.
Contents |
Supported Tags
The controller-device-list container is a list of controller-device subcontainers with no standalone tags. Each controller-device subcontainer supports the following tags.
name-token desc-token controls { }
name-token
- Type: string
- Desc: The id of a string-table entry for the localised name of the controller. This string table entry will be used in the Trainz UI to refer to the controller. It should be very short (i.e. one or two words).
desc-token
- Type: string
- Desc: The id of a string-table entry for the localised description of the controller. This string table entry will be used in the Trainz UI to give detail to the player about the control. It should be fairly short (i.e. one short sentence). Optional.
controls
- Type: hardware-controls-list
- Desc: Specifies the various controls supported by this controller type. I.e. Every lever, button, switch, etc on the hardware device. The format for the control subcontainers is documented separately here.
Example container
See tni-controls-plugin.