Skip to content

Plugins support

Pre-release
Pre-release
Compare
Choose a tag to compare
@afonsopacifer afonsopacifer released this 26 May 23:22
· 18 commits to master since this release
46e2b8d

Remove all logic for keyboard control 馃槺

Add support for control plugins 馃槑

Example:

Install a plugin for manage controls:

$ yarn add burnout-keyboard-controls-plugin

Import the plugin:

import keyboardControlsPlugin from 'burnout-keyboard-controls-plugin';

Use:

burnout.defineControlsPlugin(keyboardControlsPlugin);