mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add back F3 key to toggle HUD
This commit is contained in:
parent
fc215e0572
commit
d44c2f5c58
1 changed files with 16 additions and 5 deletions
|
|
@ -275,12 +275,23 @@ static boolean M_GamestateCanOpenMenu(void)
|
|||
//
|
||||
boolean M_Responder(event_t *ev)
|
||||
{
|
||||
if (ev->type == ev_keydown && ev->data1 == KEY_F11 && !ev->data2)
|
||||
if (ev->type == ev_keydown && !ev->data2)
|
||||
{
|
||||
// F11 can always be used to toggle fullscreen, it's
|
||||
// a safe key.
|
||||
CV_AddValue(&cv_fullscreen, 1);
|
||||
return true;
|
||||
extern consvar_t cv_showhud;
|
||||
switch (ev->data1)
|
||||
{
|
||||
case KEY_F3: // Toggle HUD
|
||||
// I am lazy so this button is also
|
||||
// hardcoded.
|
||||
CV_SetValue(&cv_showhud, !cv_showhud.value);
|
||||
return true;
|
||||
|
||||
case KEY_F11: // Fullscreen
|
||||
// F11 can always be used to toggle
|
||||
// fullscreen, it's a safe key.
|
||||
CV_AddValue(&cv_fullscreen, 1);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (dedicated
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue