Skip to content

Commit 7f7647c

Browse files
authored
PS4 touchpad boolean fix (#1186)
1 parent 995f6ce commit 7f7647c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/drivers/ps4/PS4Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ void PS4Driver::process(Gamepad * gamepad) {
245245
} else if (pointOneTouched && touchpadData.p1.unpressed) {
246246
pointOneTouched = false;
247247
}
248-
if (!pointTwoTouched && touchpadData.p2.unpressed) {
248+
if (!pointTwoTouched && !touchpadData.p2.unpressed) {
249249
touchCounter = (touchCounter < PS4_TP_MAX_COUNT ? touchCounter+1 : 0);
250250

251251
touchpadData.p2.counter = touchCounter;
252252

253253
pointTwoTouched = true;
254-
} else if (pointTwoTouched && touchpadData.p1.unpressed) {
254+
} else if (pointTwoTouched && touchpadData.p2.unpressed) {
255255
pointTwoTouched = false;
256256
}
257257
ps4Report.touchpad_data = touchpadData;

0 commit comments

Comments
 (0)