Touch/gyroscope framework for mobile via external file