Options
All
  • Public
  • Public/Protected
  • All
Menu

Module config

Index

Variables

captureGamepadEvents

captureGamepadEvents: boolean = true

Microsoft Edge now responds to gamepad input in a way that is very likely to conflict with your own gamepad handling. For example, hitting (B) will focus... the address bar? Home button? Something in the browser header that isn't what you want. By enabling this (default behavior), we mark all Edge's gamepad key events as handled, disabling the conflicting Edge behavior.

If you want the default Microsoft Edge gamepad navigation behavior, disable this option. You might consider disabling this during your title screen, or alternatively making a quit option that navigates back in history, or otherwise provide some kind of mechanism to allow users to return gamepad control to it's browser navigation role.

In the future, disabling this may also add some navigation behavior to Chrome/Firefox to match IE11's behavior. Or this option might go away entirely in favor of a better approach.

Generated using TypeDoc