diff options
| author | Po Lu | 2023-07-18 10:12:40 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-18 10:12:40 +0800 |
| commit | 5ff31bf36cf00f9d5a378ce139fd5c2ae8d3f25e (patch) | |
| tree | 5f1d6659da915840edcb12ed1931a8c379cedfce /src/androidgui.h | |
| parent | 46fd03a49617066fca87000378771caedfd150f3 (diff) | |
| download | emacs-5ff31bf36cf00f9d5a378ce139fd5c2ae8d3f25e.tar.gz emacs-5ff31bf36cf00f9d5a378ce139fd5c2ae8d3f25e.zip | |
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.
Diffstat (limited to 'src/androidgui.h')
| -rw-r--r-- | src/androidgui.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/androidgui.h b/src/androidgui.h index 9e604cdcb8c..265ec29b678 100644 --- a/src/androidgui.h +++ b/src/androidgui.h | |||
| @@ -365,6 +365,13 @@ struct android_expose_event | |||
| 365 | int width, height; | 365 | int width, height; |
| 366 | }; | 366 | }; |
| 367 | 367 | ||
| 368 | enum android_touch_event_flags | ||
| 369 | { | ||
| 370 | /* This touch sequence has been intercepted by the WM (probably | ||
| 371 | for back gesture navigation or some such.) */ | ||
| 372 | ANDROID_TOUCH_SEQUENCE_CANCELED = 1, | ||
| 373 | }; | ||
| 374 | |||
| 368 | struct android_touch_event | 375 | struct android_touch_event |
| 369 | { | 376 | { |
| 370 | /* Type of the event. */ | 377 | /* Type of the event. */ |
| @@ -384,6 +391,9 @@ struct android_touch_event | |||
| 384 | 391 | ||
| 385 | /* Index of the pointer being tracked. */ | 392 | /* Index of the pointer being tracked. */ |
| 386 | unsigned int pointer_id; | 393 | unsigned int pointer_id; |
| 394 | |||
| 395 | /* Flags associated with this event. */ | ||
| 396 | int flags; | ||
| 387 | }; | 397 | }; |
| 388 | 398 | ||
| 389 | struct android_wheel_event | 399 | struct android_wheel_event |