Added preprocessor directives for touch/mouse input
refactored for touch