[maemo-developers] How to catch “lock screen event”?
From: Eero Tamminen eero.tamminen at nokia.comDate: Fri Jul 30 11:43:17 EEST 2010
- Previous message: How to catch “lock screen event”?
- Next message: Remove Package from Extras-Devel
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: How to catch “lock screen event”?
- Next message: Remove Package from Extras-Devel
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]