[maemo-developers] Screen orientation
From: Sebastian 'CrashandDie' Lauwers crashanddie at gmail.comDate: Tue Jan 27 16:15:58 EET 2009
- Previous message: Screen orientation
- Next message: Screen orientation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jan 27, 2009 at 2:06 PM, <maemo at 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
- Previous message: Screen orientation
- Next message: Screen orientation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]