mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
parent
9a0610c1ff
commit
7fa803fa2c
@ -181,6 +181,7 @@ public class GodotInputHandler implements InputDeviceListener {
|
||||
arr[i * 3 + 2] = event.getY(i);
|
||||
}
|
||||
final int action = event.getActionMasked();
|
||||
final int pointer_idx = event.getPointerId(event.getActionIndex());
|
||||
|
||||
mRenderView.queueOnRenderThread(new Runnable() {
|
||||
@Override
|
||||
@ -189,12 +190,9 @@ public class GodotInputHandler implements InputDeviceListener {
|
||||
case MotionEvent.ACTION_DOWN:
|
||||
case MotionEvent.ACTION_CANCEL:
|
||||
case MotionEvent.ACTION_UP:
|
||||
case MotionEvent.ACTION_MOVE: {
|
||||
GodotLib.touch(event.getSource(), action, 0, evcount, arr);
|
||||
} break;
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
case MotionEvent.ACTION_POINTER_UP:
|
||||
case MotionEvent.ACTION_POINTER_DOWN: {
|
||||
int pointer_idx = event.getPointerId(event.getActionIndex());
|
||||
GodotLib.touch(event.getSource(), action, pointer_idx, evcount, arr);
|
||||
} break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user