diff --git a/Input.cpp b/Input.cpp index fdab925..43dc18e 100644 --- a/Input.cpp +++ b/Input.cpp @@ -74,7 +74,7 @@ void Input::getInput() //this finger number is always 1 for down and 0 for up an rpi+hyperpixel?? - if(SDL_GetNumTouchFingers(event.tfinger.touchId) == 1) { + if(SDL_GetNumTouchFingers(event.tfinger.touchId) <= 1) { touchDownTime = now(); } break; diff --git a/mapconverter.py b/mapconverter.py index 23c3fe4..4b807ff 100644 --- a/mapconverter.py +++ b/mapconverter.py @@ -40,7 +40,7 @@ for i in tqdm(range(len(polys))): currentPoints[2 * i + 0] = float(int(resolution * float(currentPoints[2 * i + 0]))) / resolution currentPoints[2 * i + 1] = float(int(resolution * float(currentPoints[2 * i + 1]))) / resolution - if(currentPoints[2 * i + 0] != prevx and currentPoints[2 * i + 1] != prevy): + if(currentPoints[2 * i + 0] != prevx or currentPoints[2 * i + 1] != prevy): temp.extend([currentPoints[2 * i + 0],currentPoints[2 * i + 1]]) prevx = currentPoints[2 * i + 0] @@ -48,7 +48,7 @@ for i in tqdm(range(len(polys))): if(len(currentPoints) > 6): #must be at least a triangle outlist.extend(temp) - outlist.extend([temp[0],temp[1]]) + #outlist.extend([temp[0],temp[1]]) outlist.extend(["0","0"])