Omnialabs / indielib-game

Project to port IndieLib to other platforms aside from Windows and DirectX. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL over desktop (1.5 now, 3.2 planned)
0 stars 0 forks source link

Toggle Full Screen #7

Closed samus535 closed 11 years ago

samus535 commented 11 years ago

Toggle full screen with Alt+Enter

MarkZ3 commented 11 years ago

The most frequent keyboard shortcut I see for this is ALT+Enter. But it doesn't really matter either way, I expect we can change it easily.

samus535 commented 11 years ago

Yeah you're right I just didn't remember it ...

eprana commented 10 years ago

Hello ! I'm working on a game based on Indielib. Did you succeed in diplaying the game in full screen ?

samus535 commented 10 years ago

Hi, Yes I did succeed.

 I added this to to the Main Loop:

if (mI->_input->isKeyPressed(IND_LALT) && mI->_input->onKeyPress(IND_RETURN)) mI->_render->toggleFullScreen();

Thank you very much and have a nice day

On Wed, Mar 5, 2014 at 6:17 AM, Elisa Prana notifications@github.comwrote:

Hello ! I'm working on a game based on Indielib. Did you succeed in diplaying the game in full screen ?

Reply to this email directly or view it on GitHubhttps://github.com/Omnialabs/indielib-game/issues/7#issuecomment-36732484 .

Simon

eprana commented 10 years ago

Thank you for you answer !

You don't have any resolution issue when you quit game ?

samus535 commented 10 years ago

Hi, I don't remeber any resolution issue with this method.

Thank you very much and have a nice day

On Wed, Mar 5, 2014 at 9:42 AM, Elisa Prana notifications@github.comwrote:

Thank you for you answer !

You don't have any resolution issue when you quit game ?

Reply to this email directly or view it on GitHubhttps://github.com/Omnialabs/indielib-game/issues/7#issuecomment-36748203 .

Simon