Cross-platform multi-touch and Java graphics with libgdx and mt4j

I have a cross-platform application created using libgdx. The software is often used in conjunction with large touch screens (such as the microsoft thingy coffee table) with Windows (7 and 8) and MacOS. These screens are compatible with multi-touch, but I have implemented only one touch and would like to skip a few. I ask a few questions here, in case someone who knows can save me from a bunch of watches that test a hypothesis that are undocumented and not subject to AFAIK advertising:

- Does libgdx support multi7 interface for win7? win8?

-if I have to resort to mt4j, can it be used WITHOUT a 3d engine layer? Damn, I don’t even need to recognize the gesture, just the low state of the fingers. I can not replace 10000+ lines of libgdx with mt4j!

- Has anyone tried sparsh-ui as an alternative to mt4j? Does it support win7 multitouch?

Thanks for any information that can be provided on these issues! Hooray!

+4
source share
1 answer

As far as I know, there should be no problems with multitouch. For libgdx, mouse and touch are the same thing, so there should be no problem for win7 and win8.
The touchDown , touchUp and touchDragged give you an int pointer that describes the touch number. Therefore, if you touch with 4 fingers, touchDown with pointer = 4 describes how to touch the 4th finger. You can read something about it here .
Please note that I have not tested this since I do not have a win7 / 8 touch device. Therefore, you must check it yourself, but, as I said, it should work. Let me know if this works. Thanks

+1
source

All Articles