Lots of touchscreen hacks

Still buggy, but a lot better than it was...