jnicholl edited this page Nov 7, 2011 · 4 revisions

TouchControlOverlay is a small utility library that is used to convert touch screen input into other forms of input. The main goal is to provide a convenient way to port applications originally written for other input setups onto a touchscreen device like a PlayBook.

Here's a quick guide on how to use it in your own application.

  1. Check out the source for TouchControlOverlay. The library is effectively standalone and should build as a NDK project.

  2. Interface with the library - Edit your own code to connect to the library. If you are using SDL, this has already been done for you.

  3. Create your control descriptor file - This should be created in your application and packaged as an asset.

  4. Add any images that are referenced by the descriptor file as assets.

For more information, check out the API Reference and the Examples.