update osx, ios and android projects with the new eraser flag on mouse events

This commit is contained in:
2018-10-09 12:39:24 +02:00
parent a6d0914bf8
commit b4c986d273
5 changed files with 18 additions and 17 deletions

View File

@@ -151,6 +151,7 @@ task generateVersioning(type: Exec) {
copyFiles.dependsOn(generateVersioning)
task generateJavaH(type: Exec) {
ignoreExitValue true
workingDir "$projectDir"
commandLine 'javah', "-jni", "-force", "-cp", "$classpath", "-d", "$outpath", "$activity"
}

View File

@@ -748,7 +748,7 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
float pressure = AMotionEvent_getPressure(event, 0);
kEventSource source = tool_type == AMOTION_EVENT_TOOL_TYPE_STYLUS ?
kEventSource::Stylus : kEventSource::Touch;
App::I.mouse_down(0, x, y, pressure, source);
App::I.mouse_down(0, x, y, pressure, source, 0);
tracked = 1;
//LOG("first down");
return 1;
@@ -784,7 +784,7 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
kEventSource source = tool_type == AMOTION_EVENT_TOOL_TYPE_STYLUS ?
kEventSource::Stylus : kEventSource::Touch;
if (tracked == 1)
App::I.mouse_up(0, x, y, source);
App::I.mouse_up(0, x, y, source, 0);
tracked = 0;
//LOG("first up");
return 1;
@@ -801,7 +801,7 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
{
float y = AMotionEvent_getY(event, 0);
float x = AMotionEvent_getX(event, 0);
App::I.mouse_move(x, y, 0, kEventSource::Stylus);
App::I.mouse_move(x, y, 0, kEventSource::Stylus, 0);
//LOG("single move");
return 1;
}
@@ -814,7 +814,7 @@ static int32_t engine_handle_input(struct android_app* app, AInputEvent* event)
float pressure = AMotionEvent_getPressure(event, 0);
kEventSource source = tool_type == AMOTION_EVENT_TOOL_TYPE_STYLUS ?
kEventSource::Stylus : kEventSource::Touch;
App::I.mouse_move(x, y, pressure, source);
App::I.mouse_move(x, y, pressure, source, 0);
//LOG("single move");
}
else if (count == 2)