Simple API for using phones with accelerometers as game controllers