Added toggle fullscreen key.

This commit is contained in:
Branimir Karadžić 2015-05-31 15:57:52 -07:00
parent e710926579
commit cc5606a731

View file

@ -263,6 +263,12 @@ BX_PRAGMA_DIAGNOSTIC_POP();
return 0;
}
else if (0 == strcmp(_argv[1], "fullscreen") )
{
WindowHandle window = { 0 };
toggleFullscreen(window);
return 0;
}
}
return 1;
@ -277,6 +283,10 @@ BX_PRAGMA_DIAGNOSTIC_POP();
static const InputBinding s_bindings[] =
{
{ entry::Key::KeyQ, entry::Modifier::LeftCtrl, 1, NULL, "exit" },
{ entry::Key::KeyQ, entry::Modifier::RightCtrl, 1, NULL, "exit" },
{ entry::Key::KeyF, entry::Modifier::LeftCtrl, 1, NULL, "graphics fullscreen" },
{ entry::Key::KeyF, entry::Modifier::RightCtrl, 1, NULL, "graphics fullscreen" },
{ entry::Key::F11, entry::Modifier::None, 1, NULL, "graphics fullscreen" },
{ entry::Key::F1, entry::Modifier::None, 1, NULL, "graphics stats" },
{ entry::Key::GamepadStart, entry::Modifier::None, 1, NULL, "graphics stats" },
{ entry::Key::F1, entry::Modifier::LeftShift, 1, NULL, "graphics stats 0\ngraphics text 0" },