Jump to content

Support of multitouch on PC


photo

Recommended Posts

Posted

Is there any possibilities to use multitouch technology in Unigine?

Posted

You can implement this extension via Unigine API.

We are support multi-touch input only on tablet devices.

  • 3 years later...
Posted
Hi all,

We are creating a prototype to have Unigine working with a multitouch device (Zytronic ZXY200). This device supports standard messaging with OS (Windows and Linux) so the idea is to have an API equal to engine.tablet:

  • engine.tablet.getMouseCounter()
  • engine.tablet.getMouseX(int index)
  • engine.tablet.getMouseY(int index)
All these values will be set at Update stage (before Unigine update stage)

 

The question is what is the best way to implement this?:

  • App class descendant
  • Plugin
  • Other ideas are welcomed
 

Thanks in advance,

Iván.

Posted

Done for Windows 8.1 (in the future Windows 7 and Linux). It supports 10 touch points simultaneously.

 

At the end I used Plugin approach, just hooking the right messages at Plugin::init().

 

The interface defined for UnigineScripts is:

  • ae3d.touch.getTouchCounter()
  • ae3d.touch.getTouch(int idx): ivec3 (pos_x, pos_y, touch_id)
×
×
  • Create New...