A-Frame keyboard-controls
Component
Keyboard controls for A-Frame.
Overview
Bindings and events for keyboard controls on an A-Frame VR scene. When combined with ProxyControls.js (with the proxy-controls component for A-Frame), can also receive remote keyboard input by WebRTC.
Usage
Movement + keyboard events:
<a-scene>
<a-entity camera
keyboard-controls>
</a-entity>
</a-scene>
Keyboard events only (no movement):
<a-scene>
<a-entity camera
keyboard-controls="enabled: false">
</a-entity>
</a-scene>
Usage + Remote Device
ProxyControls.js ⇢ Docs
Example:
<a-scene proxy-controls>
<a-entity camera
keyboard-controls>
</a-entity>
</a-scene>