? 2013-12-4???6:36?“Gabriele Greco” <gabriele.greco at darts.it> ???> I remember SDL 1.x used to disable screensavers by default and you used to need a SDL_putenv with:
SDL_VIDEO_ALLOW_SCREENSAVER
… to enable it.
Does SDL2 still have something builtin to disable screensavers?
I’ve seen that under Mint14 in some rare cases the screensaver still pop outs…
Does it work on android? Because it does not work for me, ie SDL_IsScreenSaverEnabled() shows the state changes, but android screen gets locked.
I used permissions WAKE_LOCK and DISABLE_KEYGUARD in AndroidManifest.xml. Should I change anything else?
Same as you.
I didn’t find a solution too, perhaps only can resolve it in Java layer.
? 2013-12-4???7:45?“miko” ???
jh wrote:
SDL_DisableScreenSaver
Does it work on android? Because it does not work for me, ie SDL_IsScreenSaverEnabled() shows the state changes, but android screen gets locked.
I used permissions WAKE_LOCK and DISABLE_KEYGUARD in AndroidManifest.xml. Should I change anything else?