Commit Graph

23 Commits

Author SHA1 Message Date
Mis012
08998b0076 make Looper, Handler, and MessageQueue work properly
this for example makes Unity apps not steal the main thread,
hanging Gtk.
2023-07-25 14:27:21 +02:00
Julian Winkler
824b821f5a looper.c: make objretcall less hacky
the old method failed when building with -Os on arm64
2023-06-22 09:26:57 +00:00
Mis012
184a1916ad src/libandroid/looper.c: make the ffi saner 2023-01-12 13:14:02 +01:00
Mis012
0a9fe3caa9 src/libandroid/native_window.c: [belongs in openxr_bio]: use dlopen/dlsym to avoid hard dependency on openxr loader 2023-01-09 13:55:25 +01:00
Mis012
2a7345e44e src/libandroid/native_window.c: the part that should go in libEGL_bio: intercept eglGetProcAddress so we can stub extensions 2023-01-05 19:00:27 +01:00
Mis012
eb9b2cb53e src/libandroid/native_window.c: implement wrappers around some OpenXR stuff so we can run OpenXR apps 2022-12-31 17:17:10 +01:00
Mis012
43aa1cf455 src/libandroid: implement more stuff 2022-12-31 17:17:10 +01:00
Nikita Travkin
d419d6d324 fixme-desc: add some stubs 2022-12-01 14:44:19 +01:00
Mis012
9db07691fe fix native activity input handling to work in the general case 2022-12-01 14:44:16 +01:00
Mis012
3616a41353 src/libandroid/native_window.c: check for NULL in bionic_eglCreateWindowSurface 2022-12-01 14:44:16 +01:00
Mis012
12fffb0724 src/libandroid/looper.c: fix for aarch64 (TODO: just implement these as extern C straight in libutils?) 2022-12-01 14:44:16 +01:00
Mis012
75187b01d5 implement/stub some stuff to make SmashHit launch 2022-11-24 16:05:38 +01:00
Mis012
33b4515cb9 add support for the boneheaded method of receiving input events that is used by NativeActivity apps
currently, our "not-actually-a-queue" implementation is quite ugly,
hopefully it might be possible to make it look somewhat sane while
not needing to make it as much of a queue as it is on android
2022-11-11 19:18:21 +01:00
Mis012
231ac88dbd make touch input work with apps using SurfaceView 2022-11-09 15:03:13 +01:00
Mis012
dbe04599b0 src/libandroid/configuration.c: add more stubs 2022-11-08 21:13:22 +01:00
Mis012
a2981b7b51 src/libandroid/input.c: add initial stubs 2022-11-04 19:26:46 +01:00
Mis012
debe8c9843 src/libandroid: Add actual implementations for the stubbed ALooper functions
this was actually surprisingly easy, since it turns out these
are just C ABI wrappers around the C++ class android::Looper
from AOSP libutils.so, which is a dependency for art that we
therefore compile and distribute alongside it
2022-11-04 19:20:45 +01:00
Nikita Travkin
c7fcb0f84e Stub some stuff 2022-11-02 15:25:14 +01:00
Mis012
6a1d2f4ed4 replace use of glfw for SurfaceView with use of wayland subsurface positioned over a Gtk widget 2022-11-02 14:37:34 +01:00
Mis012
f2be3ef820 libandroid: remove android_set_abort_message, it belongs in libc.so 2022-11-02 14:21:44 +01:00
Mis012
b801f0fb3c implement some stuff to make exaple SDL app run
NOTE: the main addition in this commit is WIP support for apps which
render on an EGL surface obtained using ANativeWindow_fromSurface

currently, this EGL surface is obtained by creating a 700x700 pixel
window with GLFW (the 700x700 size is hardcoded in several places)
and only Wayland is supported

ideally, we'd want to use a wayland subsurface to position the EGL
surface above the Surface widget it's associated with (and do
whatever for X11)
2022-10-26 18:39:04 +02:00
Mis012
49961186a2 get rid of launcher script requirement; fix app data dir being hardcoded; update documentation; remove prebuilt dalvik (NOTE - purged from history at this point, so is not part of the diff) 2022-10-12 17:30:07 +02:00
Mis012
449090143e refactor source tree organization, switch to meson 2022-10-09 22:59:16 +02:00