The touchscreen is an important part of programming! Use TOUCH OUT TM, TX, TY. If TM equals 0, then it's not being touched. You can figure out the rest pretty easily.