mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add hardcoded F11 key to toggle fullscreen
This commit is contained in:
parent
bd8f1fb6bb
commit
fc215e0572
1 changed files with 8 additions and 0 deletions
|
|
@ -275,6 +275,14 @@ static boolean M_GamestateCanOpenMenu(void)
|
|||
//
|
||||
boolean M_Responder(event_t *ev)
|
||||
{
|
||||
if (ev->type == ev_keydown && ev->data1 == KEY_F11 && !ev->data2)
|
||||
{
|
||||
// F11 can always be used to toggle fullscreen, it's
|
||||
// a safe key.
|
||||
CV_AddValue(&cv_fullscreen, 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (dedicated
|
||||
|| (demo.playback && demo.attract)
|
||||
|| M_GamestateCanOpenMenu() == false)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue