mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 17:30:51 +00:00
- DSkippableScreenJob::OnEvent()
: Ensure previously ignored keys don't cause a screenjob to skip.
* Volume up/down on the keyboard when trying to listen to a cut-scene shouldn't skip it.
This commit is contained in:
parent
a919e526ec
commit
321bfe86f8
1 changed files with 7 additions and 2 deletions
|
@ -61,8 +61,13 @@ bool DSkippableScreenJob::OnEvent(event_t* evt)
|
||||||
{
|
{
|
||||||
if (evt->type == EV_KeyDown)
|
if (evt->type == EV_KeyDown)
|
||||||
{
|
{
|
||||||
state = skipped;
|
auto& key = evt->data1;
|
||||||
Skipped();
|
bool ignoredkeys = key == KEY_VOLUMEDOWN || key == KEY_VOLUMEUP || (key > KEY_LASTJOYBUTTON && key < KEY_PAD_LTHUMB_RIGHT);
|
||||||
|
if (!ignoredkeys)
|
||||||
|
{
|
||||||
|
state = skipped;
|
||||||
|
Skipped();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue