Fix -Wswitch warnings in touch code