- 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:
Mitchell Richters 2021-04-20 20:07:20 +10:00
parent a919e526ec
commit 321bfe86f8

View file

@ -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;
}