Has anyone had any trouble implementing multitouch on-screen controls in libGDX, such as multiple joysticks? I've tried and I can't seem to get libGDX to play nice with multitouch/multiple pointers on screen at once. I am currently using a Stage
with my joystick class extending Actor
and they are detecting hits just fine, but when I touch one it interferes with the other. Any examples, or tips? I should note, that when I am using just one of the joysticks that they work as intended.
\$\begingroup\$
\$\endgroup\$
6
1 Answer
\$\begingroup\$
\$\endgroup\$
Turns out this was a device independent problem (See comments above) and the issue posted to Google Code can be found here. There was actually no problem with the code in libGDX. I'm Posting this as an answer rather than deleting so that people like me can find the answer before ripping their hair out.
Gdx.input.setInputProcessor(stage);
I am getting touch input all the way through to the correctActor
although as soon as I get a second finger on the screen it causes atouchUp()
on the first finger. Do you think maybe it is a device problem? I have a Galaxy Nexus. Maybe I'll try testing on another device... \$\endgroup\$