
	{
		if (!p8_is_running) return;
	
		pico8_buttons[0] = 0;

		if (step == 2 && typeof(pico8_mouse) !== 'undefined')
		{
			pico8_mouse[2] = 0;
		}
		
		var num = 0;
		if (e.touches) num = e.touches.length;

		if (num == 0 && typeof(pico8_mouse) !== 'undefined')
		{
			//  no active touches: release mouse button from anywhere on page. (maybe redundant? but just in case)
			pico8_mouse[2] = 0;
		}

		
		for (var i = 0; i < num; i++)
		{
			var touch = e.touches[i];
			var x = touch.clientX;
			var y = touch.