This should be working fine. I use multi-touch on my game and it use the move events for both fingers independently.
I use the following mapping
[java]
public static String TOUCH_ALL = "InputMappings_Touch_All";
inputManager.addMapping(TOUCH_ALL, new TouchTrigger(TouchInput.ALL));
[/java]
Then for the listener I do:
[java]
public class MyClass implements TouchListener {
public void onTouch(String mapping, TouchEvent event, float tpf) {
logger.log(Level.INFO, "mapping: {0}, PointerID: {1}, Type: {2}",
new Object[]{mapping, event.getPointerId(), event.getType()});
}
[/java]
In the log, I see the following messages (along with a lot of FLING, SCALE_MOVE, SCROLL events):
[java]
mapping: InputMappings_Touch_All, PointerID: 0, Type: DOWN
mapping: InputMappings_Touch_All, PointerID: 0, Type: MOVE
mapping: InputMappings_Touch_All, PointerID: 0, Type: UP
mapping: InputMappings_Touch_All, PointerID: 1, Type: DOWN
mapping: InputMappings_Touch_All, PointerID: 1, Type: MOVE
mapping: InputMappings_Touch_All, PointerID: 1, Type: UP
[/java]
PointerID: 0 is the first finger, PointerID: 1 is the second finger
1 Like
Okey!
My problem is that althoug I don´t move the first finger the system generate a huge number of events MOVE by it and I the system only generate the events DOWN and UP by the second finger. To see MOVE events by the second finger I have to lift the first finger and then I see MOVE events by the second finger.
It’s happening since I updated the plugins. Maybe the .jar library that generate events has change and I don’t have the last one?
I am working with an Android 3.2.
Cheers.
I have solved my problem. I have imported the jME3-android.jar library and it works fine.
Thanks for your help!