Fix apparent bug in #11094, fixes #11878 and likely #11798

This commit is contained in:
Henrik Rydgård 2019-03-12 09:33:39 +01:00
parent 624587c594
commit 60e32e914e

View File

@ -1,4 +1,3 @@
// Copyright (c) 2012- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
@ -509,7 +508,7 @@ static void __CtrlWriteUserLatch(CtrlLatch *userLatch, int bufs) {
userLatch->btnMake &= CTRL_MASK_USER;
userLatch->btnPress &= CTRL_MASK_USER;
if (bufs > 0) {
userLatch->btnRelease |= CTRL_MASK_USER;
userLatch->btnRelease |= ~CTRL_MASK_USER;
}
}