mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +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)
|
||||
{
|
||||
state = skipped;
|
||||
Skipped();
|
||||
auto& key = evt->data1;
|
||||
bool ignoredkeys = key == KEY_VOLUMEDOWN || key == KEY_VOLUMEUP || (key > KEY_LASTJOYBUTTON && key < KEY_PAD_LTHUMB_RIGHT);
|
||||
if (!ignoredkeys)
|
||||
{
|
||||
state = skipped;
|
||||
Skipped();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue