From b91361eed2281c42a6d6a00f60eb714c75a8fe2f Mon Sep 17 00:00:00 2001 From: Denis Date: Sat, 18 Nov 2023 00:29:37 +0100 Subject: [PATCH] Do not collide with the PS4 please --- output_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output_dev.c b/output_dev.c index 4738a07..34e00af 100644 --- a/output_dev.c +++ b/output_dev.c @@ -690,7 +690,7 @@ static void handle_msg(output_dev_t *const out_dev, message_t *const msg) { fprintf(stderr, "[ev] Unable to begin the gamepad status update: %d\n", upd_beg_res); } - if ((out_dev->logic->flags & LOGIC_FLAGS_VIRT_DS4_ENABLE) != 0) { + if ((out_dev->logic->flags & LOGIC_FLAGS_VIRT_DS4_ENABLE) == 0) { emit_ev(out_dev, msg); } } else if (msg->type == MSG_TYPE_IMU) {