ModeObject

This object provides a means for implants to control and receive updates on mode changes. Modes provides ways for the same hardware to be mapped to different implants in the same user session. Implants that are no longer visible on the hardware will continue to operate as usual, and will not be away they are no longer accessible through hardware except for via this class.

Menu implants can allow up to hundreds of implants to run through a single launchpad interface, for example. Modes can also be used internally to facility multiple views on the same implant in a way that other implants can be notified as these views change.

This class is not currently implemented.

Properties

 * current - gets or sets current mode, which is a number. default is zero.

Methods

 * void on(event, fn) - adds an event handler for the events triggered by this object.

Events

 * modechanged - called whenever the mode is changed, with the new mode available from the value property of the event, or via the mode property of ModeObject.