THREE.GamepadControls

Camera controls for three.js using the Gamepad API

入门
GitHub在线演示
Stars:21
License:MIT License
更新:2023/2/14

README

THREE.GamepadControls

Camera controls for three.js using the Gamepad API

You'll need a browser that can run WebGL and the Gamepad API.

The left pad controls the camera look around, the right pad controls the movement in the XZ plane. The bottom shoulder buttons control vertical movement in the Y axis.

IMAGE ALT TEXT HERE

Not sure if the Gamepad API is working? Check Jumping the Hurdles with the Gamepad API at HTML5Rocks and try the Tester

For some reason, it's only working on Chrome. Firefox and Opera have support, but the Gamepads are not being listed. Safari doesn't have support. I haven't tried Edge yet.

License

MIT licensed

Copyright (C) 2015 Jaume Sanchez Elias, http://www.clicktorelease.com