Fix gamepad analogs not working in menus when in game

git-svn-id: https://svn.eduke32.com/eduke32@7987 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-08-14 03:04:01 +00:00 committed by Christoph Oelckers
parent cb405ced52
commit a29869f86e
2 changed files with 3 additions and 1 deletions

View file

@ -199,7 +199,7 @@ void G_HandleSpecialKeys(void)
auto &myplayer = *g_player[myconnectindex].ps;
// we need CONTROL_GetInput in order to pick up joystick button presses
if (CONTROL_Started && !(myplayer.gm & MODE_GAME))
if (CONTROL_Started && (!(myplayer.gm & MODE_GAME) || (myplayer.gm & MODE_MENU)))
{
ControlInfo noshareinfo;
CONTROL_GetInput(&noshareinfo);

View file

@ -4603,6 +4603,8 @@ void Menu_Close(uint8_t playerID)
walock[TILE_SAVESHOT] = 1;
G_UpdateScreenArea();
S_PauseSounds(false);
I_ClearAllInput();
}
}