From 44f74d0cfcd3eee7c393bd26f7150bf815237271 Mon Sep 17 00:00:00 2001 From: Denis Date: Sun, 19 Nov 2023 23:15:41 +0100 Subject: [PATCH] It was F16... right.... --- output_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/output_dev.c b/output_dev.c index 749dc6d..4cb8a91 100644 --- a/output_dev.c +++ b/output_dev.c @@ -683,6 +683,8 @@ static void update_gs_from_ev(gamepad_status_t *const gs, message_t *const msg) gs->l3 = msg->data.event.ev[i].value; } else if (msg->data.event.ev[i].code == BTN_MODE) { gs->flags |= GAMEPAD_STATUS_FLAGS_PRESS_AND_REALEASE_CENTER; + } else if ((msg->data.event.ev_count == 2) && (msg->data.event.ev[0].value == -13565786) && (msg->data.event.ev[1].type == EV_KEY) && (msg->data.event.ev[1].code == KEY_F16)) { + gs->flags |= GAMEPAD_STATUS_FLAGS_PRESS_AND_REALEASE_CENTER; } } else if (msg->data.event.ev[i].type == EV_ABS) { if (msg->data.event.ev[i].code == ABS_X) {