Expand description
Sets device to be used for player ‘port’. By default, RETRO_DEVICE_JOYPAD is assumed to be plugged into all available ports. Setting a particular device type is not a guarantee that libretro cores will only poll input based on that particular device type. It is only a hint to the libretro core when a core cannot automatically detect the appropriate input device type on its own. It is also relevant when a core can change its behavior depending on device type.
As part of the core’s implementation of retro_set_controller_port_device, the core should call RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS to notify the frontend if the descriptions for any controls have changed as a result of changing the device type.
