Julian Winkler
bcf252d3a6
implement MotionView.eventTime and VelocityTracker
...
This is needed to make androidx ViewPager work with touch input
2024-02-27 22:02:36 +01:00
Julian Winkler
8dafa41ea9
implement View.onInterceptTouchEvent() callback
...
This is needed to support nested scrolling
A second GtkEventControllerLegacy gets registerd with GTK_PHASE_CAPTURE
2024-02-25 18:18:45 +01:00
Julian Winkler
3de842b1d8
enable onTouchEvent for ViewGroups and add some stubs
2023-11-01 17:54:59 +01:00
Mis012
4a0755c6e0
api-impl{-jni}: make view.onTouchEvent work, misc stuff to make input work for Unity games
...
onTouchEvent was previously incorrectly handled in GLSurfaceView; move it
to View so that it works properly with any of it's descendants.
This is done by reusing the existing setOnTouchListener implementation
and changing it to use GtkEventControllerLegacy which provides motion
events.
Technically some of the code is in WrapperWidget.c since every widget
calls wrapper_widget_set_jobject and we already have related code
there.
2023-10-17 21:33:59 +02:00
Julian Winkler
520d153c55
call View.onAttachedToWindow() method
2023-10-14 18:29:33 +02:00
Julian Winkler
c4b7bdc63d
ViewGroup: handle scroll events
2023-08-23 12:39:55 +02:00
Mis012
0a9591c474
src/api-impl: fix up code style, mainly for code imported from AOSP
...
used the following (plus manual edits):
`clang-format --style="{BasedOnStyle: LLVM, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0}`
2023-06-22 11:45:46 +02:00
Julian Winkler
0454dcbfd5
stub some APIs for Flappy Bird, mostly webview related
2023-06-18 11:28:40 +02:00
Mis012
231ac88dbd
make touch input work with apps using SurfaceView
2022-11-09 15:03:13 +01:00
Mis012
e5a8b4c7eb
src/api-impl/android/view/MotionEvent.java: fix copied indentation
2022-11-09 14:50:54 +01:00
Mis012
449090143e
refactor source tree organization, switch to meson
2022-10-09 22:59:16 +02:00