ConfigΒΆ

The JavaScript API does not contain a Config class. To set configuration values, send JSON-formatted messages to the WebSocket server. You can send the following messages:

  • { focused: true } – Take the Leap Motion controller input focus.
  • { focused: false } – Relinquish the Leap Motion controller input focus.
  • { background: true } – Receive frames when your application does not have the input focus.
  • { background: false } – Turn off the receipt of frames when your application does not have the input focus.

Note that the Leap.js library handles sending these messages at the appropriate time for your application.