mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
Added toggle fullscreen key.
This commit is contained in:
parent
e710926579
commit
cc5606a731
1 changed files with 10 additions and 0 deletions
|
@ -263,6 +263,12 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else if (0 == strcmp(_argv[1], "fullscreen") )
|
||||||
|
{
|
||||||
|
WindowHandle window = { 0 };
|
||||||
|
toggleFullscreen(window);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -277,6 +283,10 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||||
static const InputBinding s_bindings[] =
|
static const InputBinding s_bindings[] =
|
||||||
{
|
{
|
||||||
{ entry::Key::KeyQ, entry::Modifier::LeftCtrl, 1, NULL, "exit" },
|
{ 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::F1, entry::Modifier::None, 1, NULL, "graphics stats" },
|
||||||
{ entry::Key::GamepadStart, 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" },
|
{ entry::Key::F1, entry::Modifier::LeftShift, 1, NULL, "graphics stats 0\ngraphics text 0" },
|
||||||
|
|
Loading…
Reference in a new issue