Update Android port
* doc/lispref/commands.texi (Touchscreen Events): Describe treatment of canceled touch sequences during touch event translation. * java/org/gnu/emacs/EmacsNative.java (EmacsNative): Update JNI prototypes. * java/org/gnu/emacs/EmacsWindow.java (motionEvent): Set cancelation flag in events sent where appropriate. * lisp/touch-screen.el (touch-screen-handle-point-update): Improve treatment of horizontal scrolling near window edges. (touch-screen-handle-touch): Don't handle point up if the touch sequence has been canceled. * src/android.c (sendTouchDown, sendTouchUp, sendTouchMove): New argument `flags'. * src/androidgui.h (enum android_touch_event_flags): New enum. (struct android_touch_event): New field `flags'. * src/androidterm.c (handle_one_android_event): Report cancelation in TOUCHSCREEN_END_EVENTs. * src/keyboard.c (make_lispy_event): Fix botched merge.
This commit is contained in:
@@ -142,15 +142,18 @@ public final class EmacsNative
|
||||
|
||||
/* Send an ANDROID_TOUCH_DOWN event. */
|
||||
public static native long sendTouchDown (short window, int x, int y,
|
||||
long time, int pointerID);
|
||||
long time, int pointerID,
|
||||
int flags);
|
||||
|
||||
/* Send an ANDROID_TOUCH_UP event. */
|
||||
public static native long sendTouchUp (short window, int x, int y,
|
||||
long time, int pointerID);
|
||||
long time, int pointerID,
|
||||
int flags);
|
||||
|
||||
/* Send an ANDROID_TOUCH_MOVE event. */
|
||||
public static native long sendTouchMove (short window, int x, int y,
|
||||
long time, int pointerID);
|
||||
long time, int pointerID,
|
||||
int flags);
|
||||
|
||||
/* Send an ANDROID_WHEEL event. */
|
||||
public static native long sendWheel (short window, int x, int y,
|
||||
|
||||
Reference in New Issue
Block a user