mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
allow proper descriptor declaration for analog triggers (#13845)
This commit is contained in:
parent
95fad4d32c
commit
d14d218b76
18
runloop.c
18
runloop.c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user