Skip to content
Discussion options

You must be logged in to vote

Hi! SDL3-CS.Android includes two different things:

  1. the native Android SDL runtime libraries (libSDL3.so for Android ABIs), and
  2. the Java Android bridge from SDL, exposed to .NET as bindings from SDL3Bridge.jar.

In normal use you should not need to modify the .jar directly. The usual pattern is to inherit from Org.Libsdl.App.SDLActivity, override GetLibraries() so SDL loads SDL3, and run your managed SDL code from Main().

For the orientation issue, the important part is that Android's sensorLandscape value is not an SDL orientation hint value. SDL uses SDL_ORIENTATIONS, which accepts a space-delimited list of these values:

LandscapeLeft
LandscapeRight
Portrait
PortraitUpsideDown

So for a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Rhitomaic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants