Work on setting up remote Daydream in an Aframe project. There are no downblock components yet, but I hope to finish them soon - and it looks like they are going to support support in the upcoming Aframe release.
But you cannot handle roll support.
-, , :
, Aframe v0.4 WebVR. Daydream ( .) , , , , t .
-, , WebVR, API- Gamepad -. , .
window.addEventListener('gamepadconnected', function(evt) {
console.log("Gamepad connected at index %d: %s. %d buttons, %d axes.",
e.gamepad.index, e.gamepad.id,
e.gamepad.buttons.length, e.gamepad.axes.length);
});
-, , , , Gamepad. requestAnimationFrame. : https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
, . , !
EDIT: , . "Daydream Controller" : tracked-controls="id: Daydream Controller".
Daydream. - .
{
axes: [0, 1],
buttons: [{
pressed: false,
touched: false,
value: 0
}],
connected: true,
displayId: 16,
hand: "left",
id: "Daydream Controller",
index: 0,
mapping: "",
pose: {
angularAcceleration: null,
angularVelocity: [0, 0, 0],
hasOrientation: true,
hasPosition: false,
linearAcceleration: [0,0,0],
orientation: [0,0,0,1],
position: null
},
timestamp: 1234567890123
}