“–enable-features=GamepadExtensions” Chromium Arg Doesn’t Work With Certain User-Agents

Information

NWJS Version : v0.29.0
Operating System : Windows 7 (SP1)

Expected behavior

js flag
Adding this to the manifest should enable the experimental gamepad extensions API but it doesn’t seem to work. Am I doing something wrong or is this js flag not supported yet?

Actual behavior

js flag chrome
Adding the flag to the manifest should work just like manually enabling it in chrome://flags/.

Example for reproduction

Download: package file.zip

How to reproduce

  1. Run package file with NW.js running on M65 or newer
  2. Wait until haptic feedback testing website is loaded
  3. Test haptic feedback using a controller that supports it (e.g. XBox 360 gamepad)
    1. Connect gamepad and press button, it should be automatically selected on the top-left
    2. Fill in the required information (e.g. 0 | 1.0 | 1.0 | 1000)
    3. Click on “rumble” button
  4. Notice it doesn’t work as expected because js flag isn’t properly enabled

Author: Fantashit

1 thought on ““–enable-features=GamepadExtensions” Chromium Arg Doesn’t Work With Certain User-Agents

  1. @rogerwang Did you have the time to look into whats going wrong yet?
    I would really appreciate if this gets fixed in the v0.30.0 stable release if possible.

Comments are closed.