Object containing optional control objects.
Used to wrap supported controls for your game.
// For a game with keyboard and gamepad controls const scene = new Scene(game, { keys: new KeyControls(), gamepad: new GamepadControls() })
Gamepad controls to be used if provided.
Key controls to be used if provided.
Mouse controls to be used if provided.
Object containing optional control objects.
Used to wrap supported controls for your game.
Example
// For a game with keyboard and gamepad controls const scene = new Scene(game, { keys: new KeyControls(), gamepad: new GamepadControls() })