use constants

This commit is contained in:
James Pollack 2015-11-28 23:04:52 -08:00
parent 1315201bdc
commit 1e2398cbea

View file

@ -1216,10 +1216,10 @@ Controller.enableMapping(MAPPING_NAME);
var handToDisable = 'none';
function update() {
if (handToDisable !== 0) {
if (handToDisable !== LEFT_HAND) {
leftController.update();
}
if (handToDisable !== 1) {
if (handToDisable !== RIGHT_HAND) {
rightController.update();
}
}