On Tue, Jan 27, 2009 at 2:06 PM,  <ma...@bitblit.net> wrote:
> On Tue, 27 Jan 2009, Deepak  Kr. Sharma, Noida wrote:
>
>> How do I find out from my application if the current screen orientation
>> is landscape or portrait?
>
> AFAIK, no Maemo device has sensors for that.

He's not asking for a sensor, he's asking if it is possible to detect
if the screen has been rotated through software.

Yes it is possible, again, I do not have access to the source code I
used (not more than a fortnight), but I remember I did use SDL for
drawing on screen:

http://www.libsdl.org/cgi/docwiki.cgi/SDL_GetVideoInfo
http://www.libsdl.org/cgi/docwiki.cgi/SDL_VideoInfo


-- 
question = ( to ) ? be : ! be;
      -- Wm. Shakespeare
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to