From 92dc0dc6d0a6d65e4106faa895590b95bc7402e7 Mon Sep 17 00:00:00 2001 From: MrHuu Date: Tue, 21 Apr 2020 20:52:49 +0200 Subject: [PATCH] (3DS) Allow button presses up to INPUT_MAX_USERS This enables the 3DS to bind and use buttons and axis for users up to the maximum set by 'Max Users' in the input settings menu. --- input/drivers/ctr_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/drivers/ctr_input.c b/input/drivers/ctr_input.c index daa8685f6d..f9c912e6cb 100644 --- a/input/drivers/ctr_input.c +++ b/input/drivers/ctr_input.c @@ -51,7 +51,7 @@ static int16_t ctr_input_state(void *data, { ctr_input_t *ctr = (ctr_input_t*)data; - if (port > 0) + if (port >= MENU_ENUM_LABEL_VALUE_INPUT_MAX_USERS) return 0; switch (device)