Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL Interface should behave like the Libretro core #8

Closed
AShiningRay opened this issue Sep 22, 2024 · 1 comment · Fixed by #15
Closed

SDL Interface should behave like the Libretro core #8

AShiningRay opened this issue Sep 22, 2024 · 1 comment · Fixed by #15
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@AShiningRay
Copy link
Collaborator

What i mean by this is: SDL_interface should be loading freej2me-sdl.jar, not the other way around. This should allow, or at least help the SDL window be much more than, well, just a window. Most of libretro's code (especially in Java's side) could probably be just pasted over to Anbu with minor adjustments.

As for the interface, there are some lightweight GUI libraries such as kiss_sdl and nanogui-sdl which have very little dependencies outside of SDL (i think kiss_sdl has no external deps whatsoever) which should fit nicely into FreeJ2ME, as we only need a basic GUI of sorts for now, and if needed, we can expand on those libraries instead of writing everything from scratch.

Now... why go through all that trouble in the first place? The main reason is native Joystick support, which SDL already has by default and non-libretro FreeJ2ME can benefit immensely from. This cannot be done in pure Java+AWT without adding external libraries that will introduce portability concerns, and since SDL seems to run even on toasters these days, it is a much more interesting avenue to explore.

The other reason is that we have more control over the UI itself. AWT's interface appeared rather limited in customization to me, and Swing, while better, would require a complete GUI overhaul on standalone anyway, just to still lack Joystick support while restricting FreeJ2ME to JVMs that implement Swing.

@AShiningRay AShiningRay added enhancement New feature or request good first issue Good for newcomers labels Sep 22, 2024
@AShiningRay
Copy link
Collaborator Author

AShiningRay commented Oct 5, 2024

This will be closed by #15, not because freej2me-sdl will behave like libretro, but rather because that PR will pretty much make it the de-facto standalone FreeJ2ME jar if i find no issues with it once i'm done with the extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant