added trackball stuff.