Ok, I've tried to do as you said, it seems to be working now
I post my code in case someone wants to do the same thing :
deltaX = xEnd - xStart;
deltaY = yEnd - yStart;
cameraChanged = true;
@Override
public void onDrawFrame(GL10 gl) {
if(deltaX != 0)
{
SimpleVector xAxisVec = map.getCam().getXAxis();
map.getCam().moveCamera(xAxisVec, deltaX/50f);
deltaX = 0;
}
if(deltaY != 0)
{
SimpleVector yAxisVec = map.getCam().getYAxis();
map.getCam().moveCamera(yAxisVec, deltaY/50f);
deltaY = 0;
}
...
}
At first I thought it was still not working because it scrolled again the wrong way (going up/down instead of left for example), you know why ? When the listener detects a scroll event it calls the function that does the calculation with the parameters in this order : xStart,yStart, xEnd, yEnd, and the said function was expecting the parameters in that order : xStart,xEnd,yStart,yEnd,
Lol !
Anyway, thanks for your help, your method works fine, that's easier without vectors for sure (I'll retry mine anyway, just to see if the wrong parameters order had a big influence), I might post in this thread again if I have questions about camera.
I will try to set bounds for the camera, in order not to let it go outside of the map, so if I have a problem I'll ask you
And good job for JPCT/AE, I'm beginning with it, I find it really nice (even if I'm awkward with maths & vectors and such ^^)