Commit Graph
7476 Commits
Author SHA1 Message Date
tomikun 61bc8bbeb6 cleanup: Remove old SDL controller detection mechanism 2026-07-16 16:44:22 +08:00
tomikun 5dfb156c96 fix(SDL): Apply all SDL changes for launcher integration
Removes all the SDLControllerHandler changes, we use the
SDL_InitSubsystem() hook now
2026-07-16 16:40:49 +08:00
tomikun 65b31ee5b6 bump(SDL): 3.4.4 to 3.4.12
Uses natives from
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/actions/runs/29481078420
2026-07-16 16:38:44 +08:00
tomikun 14bb93d6ab fix: Controlify incompatible jna version
This might break some mods? needs testing.
2026-07-16 13:42:20 +08:00
tomikun f2ec8b7d17 rework: SDL detection
Now uses SDL_Init call to detect if SDL is being used..sometimes
2026-07-16 13:42:20 +08:00
tomikun 1ffa6f54bc rework(SDLActivity): Move initialization to SDLActivity, mSingleton now generic Activity
This is for LWJGL3ify. They swapped over GLFW with SDL. That includes
window setup. We have to implement that.
2026-07-08 15:16:03 +08:00
tomikun af2ea8d452 fix(SDLSurface): Return native window from MinecraftGLSurface
We can't have SDLSurface using its own native surface if a mod wants to
use SDL for outputting the rendered window (LWJGL3ify)
2026-07-08 14:40:17 +08:00
tomikun c0e2a4f15c bump(SDL): 3.2.22 to 3.4.4
Uses
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/actions/runs/24794713156/
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/commit/4765f4a95bec7f9daaa7d2a3f4430a6708b17da2

LWJGL3.4.1 SDL binding needs them

Had to modify SDLSurface to be public so we could use it.
2026-07-08 14:40:17 +08:00
tomikun 8d88d5a054 fix/feat(lwjgl): libspng and sdl bindings, angelica fix
Uses https://github.com/AngelAuraMC/lwjgl3/actions/runs/28921361028 and
https://github.com/AngelAuraMC/lwjgl3/actions/runs/28921354674

ContextAttribs update should fix angelica without lwjgl3ify
2026-07-08 14:40:12 +08:00
tomikun 61cf32ca17 fix: #295 2026-07-08 01:19:48 +08:00
tomikun 4acecad974 fix: crash if user deleted their control 2026-06-29 19:19:25 +08:00
tomikun eab636ef5e fix(MobileGlues): Minimap mods using incorrect colors
Uses
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/actions/runs/28275384091
2026-06-27 10:15:19 +08:00
tomikun 18d069f45a fix: Fallback to lwjgl3.3.3 natives on JavaGUILauncherActivity 2026-06-27 10:01:38 +08:00
tomikun a34e1f55ed fix(NotificationDownloadListener): Crash on no-installer forge versions
Fixes #282
2026-06-27 10:01:38 +08:00
tomikun 9fbdb7ebc2 fix: Using wrong natives for 3.4.1 2026-06-27 10:01:38 +08:00
tomikun 88286a5363 Merge pull request #279 from TouchController/v3_openjdk
Adds configurable panning animation when keyboard opens
2026-06-27 10:01:21 +08:00
tomikun 8e3583f14e fix: remove adjust_pan code
TouchController impl uses adjustresize. This is not needed.
2026-06-26 16:26:06 +08:00
Rock Pie ed3bb0d179 fix: Allow AWT to use any java version
* remove check against Java 17+ for the "Execute a .jar" option in the launcher because Java 17+ works now

* remove localizations for incompatible Java runtimes for the "Execute .jar" feature
2026-06-23 11:19:51 +08:00
Jokypond efd645abe7 Show device memory and memory allocation to Minecraft in the log (#276)
Signed-off-by: Jokypond <200445406+Jokypond@users.noreply.github.com>
2026-06-10 14:02:45 +08:00
fifth_light 35ac3b05a9 fix(TouchController): update cursor and input area in UI thread 2026-06-10 01:22:19 +08:00
fifth_light 86b27b056a fix(TouchController): use actual insets value for IME animation 2026-06-09 23:12:23 +08:00
fifth_light 07cc39eac5 feat(TouchController): add IME padding support 2026-06-09 22:44:00 +08:00
tomikun 06991751d6 feat: Keyboard panning when keyboard is used 2026-06-09 12:11:29 +08:00
fifth_light 2f48e67e81 feat(TouchController): add text input intergation (#69) 2026-06-09 12:11:13 +08:00
tomikun 8b95c43a85 fix(glfw): Add more missing methods and fields 2026-06-09 08:59:49 +08:00
tomikun 1f8bf59b0a mitigation: very old forge will crash trying to load package name starting with "mod_"
Because of crummy regex
https://github.com/MinecraftForge/FML/blob/57be417b7c29bb23e152f400752f68f33115915d/common/cpw/mods/fml/common/Loader.java#L66
Old forge will incorrectly load "mod_blahblah/yourclass.class" while
expecting a "yourclass.class" because package name started with "mod_".

Fixes https://github.com/AngelAuraMC/Amethyst-Android/issues/265
1.1.5
2026-05-28 21:19:47 +08:00
tomikun ffe4929211 fix: Handle high polling rate sources
Android's onTouch and onGenericMotion are only called every screen
refresh. This means it is tied to your hz. So what android does for high
refresh rate devices is it stores them in
MotionEvent.getHistoricalAxisValue() and makes you process them all at
once on the next screen refresh.

See
https://developer.android.com/reference/android/view/MotionEvent#batching

We used to just completely ignore this so high DPI mice didn't work
properly.

Hopefully high DPI everything now works properly.
2026-05-14 23:21:11 +08:00
tomikun 65ca76015c Merge pull request #256 from AngelAuraMC/feat/misc
fix: Error parsing JVM args when JSON missing arguments field
2026-05-10 08:57:48 +08:00
tomikun 1883dde977 fix: Error parsing JVM args when JSON missing arguments field 2026-05-07 21:30:44 +08:00
tomikun 3f6656b0cc Merge pull request #254 from AngelAuraMC/feat/misc
misc bug fixes
2026-05-07 17:47:20 +08:00
tomikun f8b7821d70 bump: version from 1.1.4 to 1.1.5 2026-05-06 19:09:17 +08:00
tomikun 405e370fb3 fix: Make renderer autoselect MobileGLues when angelica is found
Angelica exposes GL3.3core by using an FFP emulator they made. They are
the renderer.
2026-05-06 19:09:17 +08:00
tomikun 0e9f75b480 fix: Incorrect parsing of jvm args from JSON
This just ignored all JSONs that didn't inheritsFrom. It was assumed to
be vanilla if it wasn't inheriting, the problem is that LWJGL3ify and
others exist which don't have an inheritsFrom field yet contain jvm args
that are needed for launch. This simply removes the known problematic
vanilla arguments from being added to the launch rather than nuking the
whole thing.
2026-05-06 19:09:17 +08:00
tomikun 70a87ba7df fix(build): Correct location of local curseforge_key.txt file
Relative path bad, use absolute. It causes issues in gradle vers that
have workingDir in caches.
2026-05-06 19:09:17 +08:00
tomikun 5dd8c88db4 bump(MobileGlues): 1.1.5-dev, BGRA Swizzling
Fixes rendering for LWJGL3ify
Uses
https://github.com/AngelAuraMC/amethyst-prebuilt-libraries/actions/runs/24894710100
2026-05-06 19:09:17 +08:00
tomikun fea907c33e fix: Fullscreen not being toggled when coming from floating window 2026-05-06 19:09:17 +08:00
tomikun 67d88696b6 fix(pojavexec): Crash on floating window in 26.2-snapshots becasue of invalid nativeSurface
This happens only on 26.2-snapshots when not using "Prefer OpenGL" as
the backend. This doesn't happen on 26.1.

This doesn't fully stop crashes when people trigger floating window
during resource/texture loading or window creation, that seems to be
more of a driver issue than anything, but at least it won't occur during
post-loading.
2026-05-06 19:09:17 +08:00
tomikun dd94a7f2e8 fix(lwjgl): Load pojavexec earlier
Fixes 26.2-snapshot-4 crash

We put System.loadLibrary("pojavexec") in Library.java and Sys.java and
seperate out GLFW pojavexec init to GLFW static block initializer.

Uses
(3.4.1)
https://github.com/AngelAuraMC/lwjgl3/commit/b84bec48c80f41249ecd0c07cf40f27b71506bd1
https://github.com/AngelAuraMC/lwjgl3/actions/runs/24783965974
(3.3.3)
https://github.com/AngelAuraMC/lwjgl3/commit/b0ee05e8947598ecc269476401cb1f4e615c4ccc
https://github.com/AngelAuraMC/lwjgl3/actions/runs/24783304994
2026-04-25 16:38:46 +08:00
tomikun a876e9e858 fix(krypton_wrapper): Crash on old versions
LIBGL_ES=1 crashes krypton wrapper
2026-04-25 16:36:34 +08:00
unilock b97dcf204b fix(MinecraftDownloader): Account for artifact classifiers
com.github.GTNewHorizons:lwjgl3ify:3.0.15:forgePatches should now
install com.github.GTNewHorizons:lwjgl3ify:3.0.15:forgePatches instead
of com.github.GTNewHorizons:lwjgl3ify:3.0.15
2026-04-25 16:36:34 +08:00
tomikun bdee4e18d3 Merge pull request #248 from AngelAuraMC/feat/misc
- OpenGL fallback for 26.2-snapshot-x (versions with the new Vulkan backend) should now work properly
- Fixed mods using Veil 3.1.0 or lower crashing on arm/arm64 architectures
1.1.4
2026-04-21 22:26:07 +08:00
tomikun 1cb34a03ec bump: version from 1.1.3 to 1.1.4 2026-04-21 22:14:38 +08:00
tomikun 8bf571735c mitigation: Mitigate Veil 3.1.0 using macOS imgui natives
See
https://github.com/FoundryMC/Veil/commit/8e0e09365049a106bfa3634e2ed78a0310c5b4df
for when they fixed it. This commit simply edits `setImGuiPath()` to
nothing so we are able to properly override `imgui.library.name` for
older, broken Veil versions.
2026-04-21 22:14:38 +08:00
tomikun b86fe17c82 fix(EGL): Handle window recreations with different APIs
Should fix Mojang Vulkan falling back to opengl
2026-04-21 02:52:07 +08:00
tomikun 4d57d4960a bump: version from 1.1.2 to 1.1.3 1.1.3 2026-04-18 02:21:36 +08:00
tomikun 8267e6c6b7 Merge pull request #242 from AngelAuraMC/feat/mixed-lwjgl
mixed lwjgl bugfixes
2026-04-18 02:14:17 +08:00
tomikun fe12700fd7 update: LWJGL modules
Uses https://github.com/AngelAuraMC/lwjgl3/actions/runs/24576036363 and
https://github.com/AngelAuraMC/lwjgl3/actions/runs/24579760055 for 3.4.1
and 3.3.3 respectively

Literally changes nothing for 3.4.1, adds some fixes for 3.3.3

* https://github.com/AngelAuraMC/lwjgl3/pull/2
* 3.3.3 is now multi-release. This means its more in sync with official
mojang lwjgl.
2026-04-18 02:12:41 +08:00
tomikun c944c8e5b0 fix(lwjgl): Specify org.lwjgl.librarypath
For some reason b1.7.3 doesn't work with only adding to
`java.library.path`. They appear to override it or something as the
LWJGL debug logs say it only looks through the android native library
dir and no other.
2026-04-18 01:37:52 +08:00
tomikun 5c0c78cb8b fix(lwjgl): Exclude vulkan related modules from merging 2026-04-18 01:37:51 +08:00
tomikun 0d3a52feb0 bump(krypton_wrapper): 0.4.4 to 0.4.5 (#241) 1.1.2 2026-04-17 14:57:33 +08:00