mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #10519 from jordan-woyak/fix-hotkey-detections
MappingCommon: Fix detection of hotkey and conjunction expressions.
This commit is contained in:
commit
edd63d8c3f
@ -107,16 +107,18 @@ BuildExpression(const std::vector<ciface::Core::DeviceContainer::InputDetection>
|
||||
|
||||
for (auto& detection : detections)
|
||||
{
|
||||
// Remove since released inputs.
|
||||
// Remove since-released inputs.
|
||||
for (auto it = pressed_inputs.begin(); it != pressed_inputs.end();)
|
||||
{
|
||||
if (!((*it)->release_time > detection.press_time))
|
||||
if ((*it)->release_time && (*it)->release_time <= detection.press_time)
|
||||
{
|
||||
handle_release();
|
||||
it = pressed_inputs.erase(it);
|
||||
}
|
||||
else
|
||||
{
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
handle_press(detection);
|
||||
|
Loading…
Reference in New Issue
Block a user