Skip to content

Implement SDL3#45

Merged
AbnormalPoof merged 1 commit intomobile/mainfrom
feature/sdl3
Mar 10, 2026
Merged

Implement SDL3#45
AbnormalPoof merged 1 commit intomobile/mainfrom
feature/sdl3

Conversation

@MAJigsaw77
Copy link
Copy Markdown

@MAJigsaw77 MAJigsaw77 commented Feb 28, 2026

This pr updates the library from using SDL2 to use SDL3 and it also includes the following upgrades:

  • Removes the old Angle code made for Windows RT which is unused.
  • Cleaned up useless hints as SDL3 already follow thier behaviour.
  • Moves the default frameworks for iOS and tvOS to use the include.xml for easier setup.
  • Implements Glad loader for GL functions which fixes some crashes on some machines.
  • Updates the supported GLES ver to 3.0 on Android, iOS and tvOS.
  • Now onKeyDownPercise, onKeyUpPercise, onButtonDownPrecise and onButtonUpPrecise use nanoseconds for timestamps making the input even more percise.
  • Makes System.getTimer() return a Float.
  • Fixes the accelometer sensor from no longer working.
  • Made sensors able to load on all native targets including desktop.
  • Implmented the gyro and accel sensors on HTML5.
  • Improved the MessageBoxes alerts for multiple buttons on all native targets.
  • Updated mojoal so it can work with SDL3.
  • Removed tinyfiledialogs and replaced it with SDL3's Dialog API (it adds the following things).
    • Adds support for Android.
    • Fixes the filters for not working correctly.
    • Now the Dialog API is fully async from the native which makes our handling much easier.
  • Adds a new function to lime.utils.Bytes called toFile which uses SDL3's api to write to files, this mainly comes handy for file dialogs on Android since the file dialogs give content:// paths instead of normal paths.
  • Extended the drop events by adding onDropText, onDropBegin, onDropComplete and onDropPossition on both native and HTML5.
  • And the biggest improvement in my opinion, the mainloop has now been upgraded to use a float deltaTime aswell as now giving accurate framerates and also allowing the mainloop to run uncapped by anything.

@MAJigsaw77 MAJigsaw77 force-pushed the feature/sdl3 branch 3 times, most recently from 0f47352 to 8ae7965 Compare February 28, 2026 20:59
@MAJigsaw77 MAJigsaw77 force-pushed the feature/sdl3 branch 8 times, most recently from 1a8b47a to c0ce77b Compare March 8, 2026 05:52
@MAJigsaw77 MAJigsaw77 force-pushed the feature/sdl3 branch 5 times, most recently from a2c48cc to 718ca3c Compare March 9, 2026 08:57
Co-Authored-By: Karim Akra <144803230+KarimAkra@users.noreply.github.com>
@AbnormalPoof AbnormalPoof merged commit 248ea41 into mobile/main Mar 10, 2026
@MAJigsaw77 MAJigsaw77 deleted the feature/sdl3 branch March 10, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants