			if (!p8_touch_detected && el.parentElement.id == "p8_menu_buttons_touch") 
				is_visible = false;
			if (p8_touch_detected && el.parentElement.id == "p8_menu_buttons")
				is_visible = false;

			if (is_fullscreen) 
				is_visible = false;

			if (is_visible)
				el.style.display="";
			else
				el.style.display="none";
		}
		requestAnimationFrame(p8_update_button_icons);
	}



	function abs(x)
	{
		return x < 0 ? -x : x;
	}
	
	// step 0 down 1 drag 2 up (not used)
	function pico8_buttons_event(e, step)