libretro: Split update_controller_port_device()
authorAdrien Plazas <kekun.plazas@laposte.net>
Sat, 30 Jul 2016 00:31:22 +0000 (02:31 +0200)
committerAdrien Plazas <kekun.plazas@laposte.net>
Sat, 30 Jul 2016 00:39:58 +0000 (02:39 +0200)
commit15504ca8fb3d4dbcb1822f2aafb4797e88f88175
tree4a50bbbbfa0a22897fc64c850af54e604c30a6da
parent2629ef253690af33406a4dc7eef76a44004d1540
libretro: Split update_controller_port_device()

Split update_controller_port_device() into
update_controller_port_variable() updating the controllers from the
variables, update_controller_port_device() updating the controllers from
retro_set_controller_port_device() and controller_port_variable()
sharing getting the controller variable between the two.

Avoid setting to PSE_PAD_TYPE_NONE controllers whose variable is set to
'default' when updating them.
frontend/libretro.c