Repository navigation
Commit fdcaaee
committed
refactor: ImGui EGL renderer + JNI data bridge + IME
Replace custom GLES ImGui with official imgui_impl_opengl3 + imgui_impl_android
backends. Add three-layer JNI data bridge (Java -> C -> C#) with string-keyed
DataSlot routing. Implement one-shot Android IME via hidden EditText with
WantTextInput-driven keyboard control.
New:
- ImGuiRender.cs: EGL rendering, touch hook, keyboard IME
- ImGuiImplAndroid.cs: official Android backend binding
- JniHelperNative.cs / JniWrapper.cs: JNI P/Invoke and RAII wrappers
- AndroidIME.cs: IME show/hide via JavaClass vtable
- DL.cs: dlopen P/Invoke for dynamic linking
- MotionInputProvider.cs / MotionEventHook.cs: touch input
- jni_helper.c/h: JNI helpers + DataSlot bridge
- ModManagerUtils.java: hidden EditText IME + native data bridge
- cimgui_backends.patch: add Android/OpenGL backends to cimgui build
- README.md
Changed:
- Rename monodroid-coreclr.c -> mono_droid_coreclr.c
- Rename jnihelper.c/h -> jni_helper.c/h
- CMakeLists.txt: cimgui patch auto-apply, source renames
- UnityResolve.cs: expanded IL2CPP/Mono reflection
- Mono.cs: restructured loader entry
- .gitignore: add build outputs
Removed:
- ImGuiGLES.cs: replaced by official backends
- ModManagerUI.cs: replaced by ImGuiRender
- build-project.sh: no longer needed1 parent e2fa446 commit fdcaaee
33 files changed
Lines changed: 4409 additions & 530 deletions
File tree
- Android/library
- src/main
- cpp
- core
- libs
- unityresolve
- java/starray/android/modloader
- Scripts
- StArray.ModLoader
- ImGui
- Java
- Manager
- PInvoke
- Unity
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
61 | 80 | | |
62 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
63 | 87 | | |
64 | 88 | | |
65 | 89 | | |
| |||
85 | 109 | | |
86 | 110 | | |
87 | 111 | | |
| 112 | + | |
88 | 113 | | |
89 | 114 | | |
90 | 115 | | |
| |||
0 commit comments