[maemo-developers] [maemo-developers] How to determine if the screen has turned off?

From: Tapani Pälli tapani.palli at nokia.com
Date: Thu Dec 14 14:14:21 EET 2006
ext Frantisek Dufka wrote:
> Eero Tamminen wrote:
>> I think the app loses focus when the screen is blanked.
>> So, the SDL app could catch screen focus events and do
>> some additional checks when that happens.
> Good idea, thanks.
>> Or SDL app could always pause when it loses focus...
> This is good for video updates but sometimes not good for sound or AI
> code in games. Of course when the device is really inactive (whatever
> that means exactly) sound and other stuff should be stopped too.

HW independent idea : a timer that pauses the game when user has not
pushed button/screen for x seconds. Not very good for chess or
civilization but very good for a gauntlet clone.

> Frantisek
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

// Tapani

More information about the maemo-developers mailing list