allow proper descriptor declaration for analog triggers (#13845)

This commit is contained in:
barbudreadmon 2022-04-13 15:11:30 +02:00 committed by GitHub
parent 95fad4d32c
commit d14d218b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2093,6 +2093,24 @@ bool runloop_environment_cb(unsigned cmd, void *data)
break;
}
break;
case RETRO_DEVICE_ID_JOYPAD_R2:
switch (desc->index)
{
case RETRO_DEVICE_INDEX_ANALOG_BUTTON:
system->input_desc_btn[retro_port]
[retro_id] = desc->description;
break;
}
break;
case RETRO_DEVICE_ID_JOYPAD_L2:
switch (desc->index)
{
case RETRO_DEVICE_INDEX_ANALOG_BUTTON:
system->input_desc_btn[retro_port]
[retro_id] = desc->description;
break;
}
break;
}
break;
}