[maemo-developers] detect window iconified/maximized in SDL
From: Kimmo Hämäläinen kimmo.hamalainen at nokia.comDate: Mon Mar 30 14:51:23 EEST 2009
- Previous message: detect window iconified/maximized in SDL
- Next message: detect window iconified/maximized in SDL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, You might want to check out hildon-games-wrapper0 (Nokia-open) before starting from scratch. We have SDL games that receive these events in Diablo (and Fremantle). BR; Kimmo On Mon, 2009-03-30 at 09:42 +0200, ext Kees Jongenburger wrote: > On Mon, Mar 30, 2009 at 8:15 AM, Quim Gil <quim.gil at nokia.com> wrote: > > Hi, > > > > CCing Kuisma, Maemo SW maintainer of the SDL packages. > > > > ext Kees Jongenburger wrote: > >> Hi, > >> > >> Should we/I start a small libsdl project on garage to address such issues? > > > > And what would be the goal of such garage project? Isn't enough to file > > bugs/patches against > > > > http://repository.maemo.org/pool/fremantle/free/libs/libsdl1.2/ > > http://repository.maemo.org/pool/fremantle/free/libs/libsdl-mixer1.2/ > > http://repository.maemo.org/pool/fremantle/free/libs/libsdl-image1.2/ > > Perhaps. Apparently a programs that does not listen to dbus events is not maemo > friendly and a typical SDL programs will do just that(not listen to > the events). If we can easily modify the SDL lib > to map these event to standard events that would be great. > > But not everything can and should be abstracted away sometime t's > better to provide good examples, > certainly if we need to integrate the dbus hander in the main loop.:p > > Greetings > > > > > > > >> > >> > >> Greetings > >> On Thu, Mar 26, 2009 at 9:35 PM, W. de Hoog <wdehoog at exalondelft.nl> wrote: > >>> Hi, > >>> > >>>> Do you have a separate thread that listens on the libosso callback stuff? > >>>> That could work also if it "locks up" the main loop when display is turned off and > >>>> (like your main thread) doesn't use SDL to wait for events. > >>> I do not have a seperate thread for it. I did register my callback but > >>> as I mailed, it is not being called back when the display goes on or > >>> off. This is very weird and disappointing. > >>> > >>>> You can in select() listen on that file descriptor. You could look for an example here: > >>>> http://hg.berlios.de/repos/hatari/file/c6567e2a430d/src/control.c > >>> Thanks for the link. However this seems a bit beyond my reach. > >>> > >>> > >>> regards, > >>> > >>> -- > >>> Willem-Jan de Hoog > > > > -- > > Quim Gil > > open source advocate > > Maemo Software @ Nokia > > > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers
- Previous message: detect window iconified/maximized in SDL
- Next message: detect window iconified/maximized in SDL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]