Constructor
new ControllerRegistry()
Create a new controller registry.
Methods
add(id, map)
Add a controller mapping.
Parameters:
Name | Type | Description |
---|---|---|
id | string | The ID of the controller |
map | Object.<string, function()> | The keymap of the controller |
get(id) → {Controller}
Get a controller mapping by specified ID.
Parameters:
Name | Type | Description |
---|---|---|
id | string | The unique ID of the controller |
Returns:
The controller
- Type:
- Controller
makeBuiltin()
Register built-in controllers.