The following TOUCH_MAP's are backwards (in the wrong if/then clauses), and pointerEnabled is misspelled.