mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- don't let joystick/controller axis events register as a keypress for screen advancing.
This commit is contained in:
parent
9f0bb97e63
commit
a3020ed867
2 changed files with 5 additions and 1 deletions
|
@ -169,7 +169,10 @@ public:
|
|||
|
||||
bool CheckAllInput()
|
||||
{
|
||||
auto res = keyGetScan();
|
||||
int res;
|
||||
do
|
||||
res = keyGetScan();
|
||||
while (res > KEY_LASTJOYBUTTON && res < KEY_PAD_LTHUMB_RIGHT); // Controller movement events should not register here.
|
||||
ClearAllInput();
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -474,6 +474,7 @@ bool M_SetMenu(FName menu, int param, FName caller)
|
|||
M_ClearMenus(); // must be done before starting the level.
|
||||
if (caller == NAME_MainMenu) GameStartupInfo.Episode = param;
|
||||
STAT_StartNewGame(gVolumeNames[GameStartupInfo.Episode], GameStartupInfo.Skill);
|
||||
inputState.ClearAllInput();
|
||||
gi->StartGame(GameStartupInfo);
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue