mirror of https://github.com/PCSX2/pcsx2.git
Don't call PressButton if the key pressed isn't in the index.
This commit is contained in:
parent
b45e524b2c
commit
6afee4ae0c
|
@ -152,7 +152,8 @@ static void AnalyzeKeyEvent(keyEvent &evt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PressButton(pad, index);
|
if (index != -1)
|
||||||
|
PressButton(pad, index);
|
||||||
|
|
||||||
//PAD_LOG("Key pressed:%d\n", index);
|
//PAD_LOG("Key pressed:%d\n", index);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue