stemkoski / A-Frame-Examples

A collection of examples using the A-Frame library.
https://stemkoski.github.io/A-Frame-Examples/
165 stars 67 forks source link

Controls per device #6

Open jimver04 opened 3 years ago

jimver04 commented 3 years ago

Nice extension of a-frame, however, how to change controls depending on the device ?

if (AFRAME.utils.device.isMobile()){

Dual Joysticks

} else if (AFRAME.utils.device.isMobileVR()){

look controls

} else {

Mouse + Keyboard

}

Best, D.