Building a touchscreen mouse from scratch is more complicated than you'd think...
ToeTap is a minimalist USB keyboard and mouse that you control by tapping your toes.