mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-04-23 20:00:59 +00:00
Handle controller in SCR_ModalMessage
This commit is contained in:
parent
7826204729
commit
ad9346cb19
1 changed files with 2 additions and 1 deletions
|
@ -924,6 +924,7 @@ int SCR_ModalMessage (const char *text, float timeout) //johnfitz -- timeout
|
|||
} while (lastchar != 'y' && lastchar != 'Y' &&
|
||||
lastchar != 'n' && lastchar != 'N' &&
|
||||
lastkey != K_ESCAPE &&
|
||||
lastkey != K_X360_B && lastkey != K_X360_A &&
|
||||
time2 <= time1);
|
||||
Key_EndInputGrab ();
|
||||
|
||||
|
@ -934,7 +935,7 @@ int SCR_ModalMessage (const char *text, float timeout) //johnfitz -- timeout
|
|||
return false;
|
||||
//johnfitz
|
||||
|
||||
return (lastchar == 'y' || lastchar == 'Y');
|
||||
return (lastchar == 'y' || lastchar == 'Y' || lastkey == K_X360_A);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue