Created
June 24, 2019 14:15
-
-
Save flushpot1125/ea4b4af662d7ef8f648efeb5968aadb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//left:Y, right:B | |
webVRController.onSecondaryButtonStateChangedObservable.add((stateObject)=>{ | |
if(webVRController.hand ==='left'){ | |
if(stateObject.pressed === true){ | |
console.log("Left Y button pressed"); | |
} | |
}else{ | |
if(stateObject.pressed === true){ | |
console.log("Right B button pressed"); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment