rem: console.log("axes"); 
context: function updateStatus(){	console.log("updating Status");	if(navigator.webkitGetGamepads){		scangamepads();	}	for(var gamepad in controllers){		var controller = controllers[gamepad];		var d = document.getElementById("controller" + gamepad);		var buttons = d.getElementsByClassName("button");		for(var i in activeButtons){			console.log("buttons");			var b = buttons[i];			var val = controller.buttons[i];			var pressed = val == 1.0;			if(typeof(val) == "object"){				pressed = val.pressed;				val = val.value;			}			if(pressed){//TODO: make the buttonFlag a toggle switch//TODO: make a button wait till not pressed clause					b.className = "button pressed";					controllerButtonEvent(i, val);					//socket.emit("controllerButtonEvent", i, val);			}			else{				b.className = "button";				controllerButtonEvent(i, val)				//socket.emit("controllerButtonEvent", i, val);			}		}		var axes = d.getElementsByClassName("axis");		//TODO: change this to show the degree of roll, pitch, yaw...		for(var i =0; i < controller.axes.length; i++){			//TODO: do this better...			console.log("axes");					var a = axes[i];					a.innerHTML = i + ": " + controller.axes[i].toFixed(4);					a.setAttribute("value", controller.axes[i] + 1);					controllerAxesEvent(i, (a.getAttribute("value")-1)*32768);					axesPreVals[i] = controller.axes[i]+1;					controllerAxesEvent(i, (a.getAttribute("value")-1)*32768);	}	}	sendControlData();	console.log("exiting updateStatus");}
meta: 10965	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10965/465345b775f1d265a78fea9c3cbaa304338a51dc/BeagleQuadHome.js/buggy/code/ControlTower/javascript/BeagleQuadHome.js