Do anyone know How to do keyboard event in TUIO??? Below is my code… but when i extend it to touch, it just cannot receive the keyEvent on the stage (maybe because SIMTOUCH or CCV is sitting on it)… do anyone knows a way how i can perform keyboard event in touch environment?
addEventListener(KeyboardEvent.KEY_DOWN,KeyDown);
private function KeyDown(e:KeyboardEvent):void
{
if(e.keyCode == 37)
{
trace("left");
}
if(e.keyCode == 39)
{
trace("right");
}
}