(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.
This commit is contained in:
MrHuu 2020-04-21 20:52:49 +02:00 committed by GitHub
parent ce4c750326
commit 92dc0dc6d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)