Comments (1)
Looks like it needs to use https instead of http
https://forum.babylonjs.com/t/warning-about-getgamepad-will-now-require-secure-context/18312
here is why:
https://bugzilla.mozilla.org/show_bug.cgi?id=1591329
1591329 - [GamePad] Require secure context for getGamePads() in Nightly (mozilla.org)
We found an unusually large number of websites were poking at the Gamepad API in third-party contexts (i.e., not directly from gaming websites), which is a strong indicator that tracking scripts are trying to exploit the API. In order to prevent that, moving the API to secure context and adding permissions policy was a prudent solution (in addition to the mitigation we already have in place of only returning a gamepad object when the user interacts with the gamepad).
from html5-javascript-gamepad-controller-library.
Related Issues (16)
- Firefox changes event names for gamepad API (no prefix, all lowercase) HOT 2
- Contribution guidelines & scripts? HOT 5
- Standardize button names reported by library HOT 5
- Linux & xbox controller HOT 3
- Use objects instead of arrays for buttons/axes mappings
- Document the button names
- Demo not working in Chrome HOT 1
- Consider firing synthetic events
- Use unprefixed Gamepad API if available for WebKit
- mapping of buttons HOT 1
- Not work in last Chrome (73.0.3683.86) HOT 3
- gamepad.bind(Gamepad.Event.BUTTON_UP) not working HOT 3
- controller connects twice if connected with both bluetooth and wire HOT 10
- Library does not support XBOX 360 Controller Under Linux HOT 7
- Linux, Firefox (Nightly 17.0a1 2012-07-17), (old) Logitech Gamepad: different mapping HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html5-javascript-gamepad-controller-library.