displaydev.androidsdl
Android SDL display: Activity orientation from logical aspect, surface scale.
MCU-shaped contract: the app chooses orientation via panel size / rotation
(logical width vs height). The Activity is locked to that aspect;
tilting the phone does not change it — the user turns the device to match.
- class displaydev.androidsdl.AndroidSDLDisplay(width=320, height=240, rotation=0, color_depth=16, title='SDL2 Display', scale=1.0, window_flags=4, render_flags=6, x=805240832, y=805240832, *, quiet=False)[source]
Bases:
SDLDisplaySDLDisplayfor Android: aspect → Activity lock, no RenderCopyEx rotate.