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

From: Frantisek Dufka dufkaf at seznam.cz
Date: Thu Dec 14 14:04:48 EET 2006
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.

Frantisek



More information about the maemo-developers mailing list