Use the Events tab to define custom events that are triggered by input signals. These events are automatically registered with Vizard and handled within the Vizard code. Defining events via vizconnect helps to maintain the abstraction between software and hardware. The Vizard application only needs to know that an event has occurred, not what particular input signal has triggered the event. The input signal to event mapping is contained within the vizconnect file. Depending on the vizconnect file used, the same event callback function could be triggered by a wand button, mouse button, keypress etc.
The following command returns a handle to the wrapped event using the name defined in the configuration:
| Command | Description |
|
vizconnect.getEvent(name) |
Returns a handle to the wrapped event. |
In addition to the methods listed below, wrapped object methods from the <node> class can be called on the wrapped input:
| Method | Description |
| <WrappedEvent>.getEnabled() |
Gets the enabled state of the event. |
| <WrappedEvent>.setEnabled(state) |
Sets the enabled state of the event. State: can be viz.ON, viz.OFF, or viz.TOGGLE |