added Normal lines mode for perspective aligned lines

This commit is contained in:
2017-05-07 15:25:54 +01:00
parent de1ace0d63
commit b50011babf
9 changed files with 220 additions and 36 deletions

View File

@@ -437,10 +437,11 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
{
float y = AMotionEvent_getY(event, 0);
float x = AMotionEvent_getX(event, 0);
tracked = 0;
p0.id = -1;
p1.id = -1;
App::I.mouse_up(0, x, y);
if (tracked == 1)
App::I.mouse_up(0, x, y);
tracked = 0;
//LOG("first up");
return 1;
}
@@ -461,7 +462,7 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
return 1;
}
case AMOTION_EVENT_ACTION_MOVE:
if (count == 1)
if (count == 1 && tracked == 1)
{
float y = AMotionEvent_getY(event, 0);
float x = AMotionEvent_getX(event, 0);