mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- explicitly check for opening the console when running a screen job.
This commit is contained in:
parent
3910146740
commit
584e4bfb4a
1 changed files with 12 additions and 0 deletions
|
@ -211,6 +211,18 @@ public:
|
|||
bool OnEvent(event_t* ev)
|
||||
{
|
||||
if (paused || index >= jobs.Size()) return false;
|
||||
|
||||
if (ev->type == EV_KeyDown)
|
||||
{
|
||||
// We never reach the key binding checks in G_Responder, so for the console we have to check for ourselves here.
|
||||
auto binding = Bindings.GetBinding(ev->data1);
|
||||
if (binding.CompareNoCase("toggleconsole") == 0)
|
||||
{
|
||||
C_ToggleConsole();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (jobs[index].job->state != DScreenJob::running) return false;
|
||||
return jobs[index].job->OnEvent(ev);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue