need some help with android code that covers a third device

Hello!

For our app we need to be able to receive a new type of input. Much like the WII remotes.
So finger touches are not recognized and the mouse input from Unity can only track one input.
In this example:
http://www.rbgrn.net/content/367-source-code-to-multitouch-visible-test

is the part that does work on the modified android os system.
How can I put that part and make it work with unity? Much like one creates a for loop for input touches?

When I hit that link I get

“Page not found
The requested page could not be found.”

I have fixed the link!