Android source code to convert a smart phone to a game controller