ian Posted September 6, 2017 Share Posted September 6, 2017 Can anybody explain me how can I setup VRDeviceOrientationArcRotateCamera with gamepad controller. Is this already done or not? How can we attach gamepad with VRDeviceOrientationArcRotateCamera? Greetings Ian Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 6, 2017 Share Posted September 6, 2017 Yes check line #9: https://www.babylonjs-playground.com/#1BILUK#1 Quote Link to comment Share on other sites More sharing options...
ian Posted September 7, 2017 Author Share Posted September 7, 2017 I have code arcRotateCamera = new BABYLON.VRDeviceOrientationArcRotateCamera("VRDeviceOrientationArcRotateCamera", alphaTemp, betaTemp, radiusTemp, targetTemp, scene ); arcRotateCamera.inputs.addGamepad(); scene.activeCamera = arcRotateCamera; scene.activeCamera.attachControl( canvas ); I would like to implement events of gamepad. So gamped has its own buttions and sensors. How can we implement gampad buttons events? Do we have any example how to implement listeners of gampad buttons in javascript? @Deltakosh greetings Ian Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 7, 2017 Share Posted September 7, 2017 Sure thing: http://doc.babylonjs.com/classes/3.0/gamepad#onleftstickchanged-callback-rarr-void ian 1 Quote Link to comment Share on other sites More sharing options...
dbawel Posted September 7, 2017 Share Posted September 7, 2017 @ian- The gamepad is always crucial to me. I primarily develop for the MOGA Pro - as this will provide support for every device and OS with minimal effort. Other controllers can cause real functionality issues. DB Quote Link to comment Share on other sites More sharing options...
ian Posted September 8, 2017 Author Share Posted September 8, 2017 http://david.blob.core.windows.net/babylonjs/gamepad/index.html Quote Link to comment Share on other sites More sharing options...
ian Posted September 29, 2017 Author Share Posted September 29, 2017 http://html5gamepad.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.