Rac. Controller

The Controller is the object that manages the control system for an instance of Rac.

This instance holds control settings like pointer style or the knob radius. It also mantains the state of the control system, like the currently selected control, last pointer, and the collection of all available controls.

Constructor

new Controller()

Builds a new Controller with the given Rac instance.

Classes

Selection

Members

knobRadius :number

Distance at which the pointer is considered to interact with a control knob. Also used by controls for drawing.

rac :Rac

Intance of Rac used for drawing and passed along to any created object.

(nullable) selection :Rac.Controller.Selection

Selection information for the currently selected control, or null when there is no selection.