Add input_libretro_device_pN setting.

Allows input device type to be saved in a config, which tremendously helps usability
for PlayStation 1 cores.