Input System  v0.1
ISX.InputTemplate Class Reference

A template lays out the composition of an input control. More...

Classes

struct  Builder
 Build a template programmatically. Primarily for use by template constructors registered with the system. More...
 
struct  ControlTemplate
 Specification for the composition of a direct or indirect child control. More...
 

Detailed Description

A template lays out the composition of an input control.

Templates can be created in three ways:

  1. Loaded from JSON.
  2. Constructed through reflection from InputControls classes.
  3. Through template constructors using InputTemplate.Builder.

Once constructed, templates are immutable (but you can always replace a registered template in the system and it will affect everything constructed from the template).

Templates can be for arbitrary control rigs or for entire devices. Device templates can use the 'deviceDescriptor' field to specify regexs that are to match against compatible devices.

InputTemplate objects are considered temporaries. Except in the editor, we don't keep them around beyond device creation.