Thanks to Bernardo dos Santos for the mail. He was using the Tiper2 and he have some problems with the tuioZone. I take the opportunity to translate the code and comment it in english.
I also clean some parts of the code and modify the first part of the .kbd files in order to store there the information abouth the border and center of the keyboard.
First you have to use the Tiper3MapMaker in order to draw the distribution of the keyboard you want to use. I already made a map.kbd file. Open it with a text editor, explore, modify or erase all the information. Then draw a new one. For default you it always save it on the map.kbd file.
The interesting thing of it is that in this example I use a photo of a mac keyboard but you can use what ever you want. Each time you press a key it will create one with the same letter. But then you can change it using a text editor and put there a word for example: POWER, VOL +, VOL – , etc…. in order to make a RemoteControl.
After created you map.kbd file move it to the data folder of Tiper3. With it you give it life and functionality. You can place it what ever you want and rotate. It use polar geometry instad of pushing and poping the matrix, so it always work no mater how many times you rotate and move it.
I commented some lines here use the TUIO library in order to make it work over a multitouch surface. You can download the library from tuio.org, look at the videos I have about making a cheap moultitouch surface to start playing with it and using as a virtual keyboard.
Look at the “check” funtion of the Keyboard Class in order to know how to know wich key is pressed and start thinking how can became part of you projects.
If it works for you, or if you make some changes, or if you have doubts, please let me know in order to make it a better tool.
Source code here