Options
All
  • Public
  • Public/Protected
  • All
Menu

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()
})

Hierarchy

  • Controls

Index

Properties

Properties

Optional gamepad

Gamepad controls to be used if provided.

Optional keys

Key controls to be used if provided.

Optional mouse

Mouse controls to be used if provided.