Hi,
ext Xin Zhang wrote:
I'm developing a game for n900 using SDL. How do I catch system events (like lock screen switch turned on/off, screen gets locked automatically, or incoming call during game play)?
Right now when the game is running, I could not catch the system events (like lock screen switch turned on/off, screen gets locked automatically, or incoming call during game play). Therefore, the game is still active running even screen is locked. I hope I can catch these system events and make the game paused. Could anyone give me some direction in fixing the problem?
I've posted a thread in [http://talk.maemo.org/showthread.php?t=59238]. Many
thanks!
Your window loses focus and it isn't anymore the topmost window.
When the screen is blanked, there's additionally also a D-BUS message.
- Eero
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers