我一直在尝试使用他们自己的游戏 handle 示例测试 Microsoft edge build 10240 中的游戏 handle API http://internetexplorer.github.io/Gamepad-Sample/ .该演示适用于 chrome 和 firefox。
navigator.getGamepads
存在,但在使用边缘时返回一个空数组。我试过两种不同的 Controller ,其中一种是 PS4 Controller 。 edge 仅支持某些游戏 handle 还是我需要更新版本的 edge?
编辑:因此,如果游戏 handle 被模拟为 Xbox Controller ,它们就会被识别出来。没有其他支持游戏 handle api 的浏览器会区分不同的 Controller vendor 。 Edge 中的游戏 handle API 是否有意支持 Microsoft Controller 以外的任何东西?
最佳答案
刚刚使用您提供的链接对此进行了测试,我的 DS4 Controller 和 Edge,似乎可以正常工作(除了它被识别为 Xbox 的部分),但必须安装 DS4windows:
编辑:识别为 Xbox 是故意的:
By emulating a Xbox 360 controller, many more games are accessible
关于javascript - Microsoft Edge 未检测到游戏 handle ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32950262/