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.
Check out the source for TouchControlOverlay. The library is effectively standalone and should build as a NDK project.