maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   System Callbacks (https://talk.maemo.org/showthread.php?t=42947)

parths 2010-02-01 10:53

System Callbacks
 
Hi,

* I need to be able to handle the power button in my game. How can I handle that and other System events? I'm using XWindows with OpenGLES 2.0.

* I tried using SDL with OpenGLES but it wouldn't initialize so I assumed SDL support for OpenGLES was not complete yet (?)

* I haven't used Hildon because i couldn't find any tutorial about using Hildon with OpenGLES.

I appreciate any references / pointers to the above.

Thanks

parths 2010-02-09 13:07

Re: System Callbacks
 
Does anyone have any suggestions?

epage 2010-02-09 13:39

Re: System Callbacks
 
Ideally you should cleanly handle the power button and activation of the task switcher (Ctrl+Backspace). How to do this from SDL, I'm not sure. I assume some of the other games like SuperTux are SDL based and do these things properly. You could
  • play with the games, see of they work, and go download the source (for example SuperTux source)
  • Posting on maemo-devel mailing list which is a more targeted

As for hildon/SDL, I know for a while there was a game wrapper that had a hildon launcher for SDL(?) games. I think some of the builtin games use i(?). You could do similarly for a mixed SDL/Hildon experience.

I know, don't I sound so definitive ;)


All times are GMT. The time now is 07:57.

vBulletin® Version 3.8.8